librime: dict_settings.h Source File

| librime 1.2 Rime Input Method Engine, the core library

dict_settings.h
Go to the documentation of this file.
1//
2// Copyright RIME Developers
3// Distributed under the BSD License
4//
5// 2012-11-11 GONG Chen <chen.sst@gmail.com>
6//
7#ifndef RIME_DICT_SETTINGS_H_
8#define RIME_DICT_SETTINGS_H_
9
10#include <istream>
11#include <rime/common.h>
12#include <rime/config.h>
13
14namespace rime {
15
16 class DictSettings : public Config {
17 public:
18 DictSettings();
19 bool LoadDictHeader(std::istream& stream);
20 bool empty();
21 string dict_name();
22 string dict_version();
23 string sort_order();
24 bool use_preset_vocabulary();
25 string vocabulary();
26 bool use_rule_based_encoder();
27 int max_phrase_length();
28 double min_phrase_weight();
29 an<ConfigList> GetTables();
30 int GetColumnIndex(const string& column_label);
31};
32
33} // namespace rime
34
35#endif // RIME_DICT_SETTINGS_H_
common.h
config.h
rime
Definition algebra.cc:12
rime::an
std::shared_ptr< T > an
Definition common.h:60
rime::Config::Config
RIME_DLL Config()
Definition config_component.cc:18
rime::DictSettings::LoadDictHeader
bool LoadDictHeader(std::istream &stream)
Definition dict_settings.cc:15
rime::DictSettings::GetColumnIndex
int GetColumnIndex(const string &column_label)
Definition dict_settings.cc:98
rime::DictSettings::sort_order
string sort_order()
Definition dict_settings.cc:51
rime::DictSettings::use_preset_vocabulary
bool use_preset_vocabulary()
Definition dict_settings.cc:55
rime::DictSettings::vocabulary
string vocabulary()
Definition dict_settings.cc:62
rime::DictSettings::use_rule_based_encoder
bool use_rule_based_encoder()
Definition dict_settings.cc:67
rime::DictSettings::GetTables
an< ConfigList > GetTables()
Definition dict_settings.cc:79
rime::DictSettings::min_phrase_weight
double min_phrase_weight()
Definition dict_settings.cc:75
rime::DictSettings::dict_name
string dict_name()
Definition dict_settings.cc:43
rime::DictSettings::dict_version
string dict_version()
Definition dict_settings.cc:47
rime::DictSettings::empty
bool empty()
Definition dict_settings.cc:39
rime::DictSettings::max_phrase_length
int max_phrase_length()
Definition dict_settings.cc:71
rime::DictSettings::DictSettings
DictSettings()
Definition dict_settings.cc:13