librime: signature.h Source File

| librime 1.2 Rime Input Method Engine, the core library

signature.h
Go to the documentation of this file.
1//
2// Copyright RIME Developers
3// Distributed under the BSD License
4//
5// 2012-02-21 GONG Chen <chen.sst@gmail.com>
6//
7#ifndef RIME_SIGNATURE_H_
8#define RIME_SIGNATURE_H_
9
10namespace rime {
11
12class Config;
13class Deployer;
14
15 class Signature {
16 public:
17 Signature(const string& generator, const string& key = "signature")
18 : generator_(generator), key_(key) {}
19
20 bool Sign(Config* config, Deployer* deployer);
21
22 private:
23 string generator_;
24 string key_;
25};
26
27} // namespace rime
28
29#endif // RIME_SIGNATURE_H_
rime
Definition algebra.cc:12
rime::Config
Definition config_component.h:21
rime::Deployer
Definition deployer.h:32
rime::Signature::Signature
Signature(const string &generator, const string &key="signature")
Definition signature.h:17
rime::Signature::Sign
bool Sign(Config *config, Deployer *deployer)
Definition signature.cc:15