// // Copyright RIME Developers // Distributed under the BSD License // // 2012-11-11 GONG Chen // #ifndef RIME_DICT_SETTINGS_H_ #define RIME_DICT_SETTINGS_H_ #include #include #include namespace rime { class DictSettings : public Config { public: DictSettings(); bool LoadDictHeader(std::istream& stream); bool empty(); string dict_name(); string dict_version(); string sort_order(); bool use_preset_vocabulary(); string vocabulary(); bool use_rule_based_encoder(); int max_phrase_length(); double min_phrase_weight(); an GetTables(); int GetColumnIndex(const string& column_label); }; } // namespace rime #endif // RIME_DICT_SETTINGS_H_