3 * Library to deal with pinyin.
5 * Copyright (C) 2013 Peng Wu <alexepico@gmail.com>
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
29 class SystemTableInfo{
30 friend class UserTableInfo;
32 int m_binary_format_version;
33 int m_model_data_version;
36 pinyin_table_info_t m_table_info[PHRASE_INDEX_LIBRARY_COUNT];
41 void postfix_tables();
48 bool load(const char * filename);
50 pinyin_table_info_t * get_table_info();
57 int m_binary_format_version;
58 int m_model_data_version;
63 bool load(const char * filename);
65 bool save(const char * filename);
67 bool is_conform(const SystemTableInfo * sysinfo);
69 bool make_conform(const SystemTableInfo * sysinfo);