diff options
author | Peng Wu <alexepico@gmail.com> | 2015-05-20 14:28:51 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2015-05-20 14:28:51 +0800 |
commit | 42c7299f3bbe2191a44aa17fe17829361aede7eb (patch) | |
tree | 33f52ede9795c06ee500eaa4366c8a77ca2c656b /src/storage/table_info.h | |
parent | 8fc2fc4da82250bfe33c81c3575cb4d5fdde10dc (diff) | |
download | libpinyin-42c7299f3bbe2191a44aa17fe17829361aede7eb.tar.gz libpinyin-42c7299f3bbe2191a44aa17fe17829361aede7eb.tar.xz libpinyin-42c7299f3bbe2191a44aa17fe17829361aede7eb.zip |
add phonetic table type to table info
Diffstat (limited to 'src/storage/table_info.h')
-rw-r--r-- | src/storage/table_info.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/storage/table_info.h b/src/storage/table_info.h index 8d7fa05..ff7a781 100644 --- a/src/storage/table_info.h +++ b/src/storage/table_info.h @@ -28,6 +28,11 @@ namespace pinyin{ typedef enum { + PINYIN_TABLE, /* use pinyin. */ + ZHUYIN_TABLE, /* use zhuyin. */ +} TABLE_PHONETIC_TYPE; + +typedef enum { NOT_USED, /* not used. */ SYSTEM_FILE, /* system phrase file. */ DICTIONARY, /* professional dictionary. */ @@ -52,6 +57,8 @@ private: int m_model_data_version; gfloat m_lambda; + TABLE_PHONETIC_TYPE m_table_phonetic_type; + pinyin_table_info_t m_table_info[PHRASE_INDEX_LIBRARY_COUNT]; private: @@ -69,6 +76,8 @@ public: const pinyin_table_info_t * get_table_info(); gfloat get_lambda(); + + TABLE_PHONETIC_TYPE get_table_phonetic_type(); }; class UserTableInfo{ |