librime 1.2
Rime Input Method Engine, the core library
table_db.h
Go to the documentation of this file.
1//
2// Copyright RIME Developers
3// Distributed under the BSD License
4//
5// 2013-04-18 GONG Chen <chen.sst@gmail.com>
6//
7#ifndef RIME_TABLE_DB_H_
8#define RIME_TABLE_DB_H_
9
10#include <rime/dict/text_db.h>
11
12namespace rime {
13
14class TableDb : public TextDb {
15 public:
16 TableDb(const path& file_path, const string& db_name);
17
18 static const TextFormat format;
19};
20
21// read-only tabledb
22class StableDb : public TableDb {
23 public:
24 StableDb(const path& file_path, const string& db_name);
25
26 virtual bool Open();
27};
28
29} // namespace rime
30
31#endif // RIME_TEXT_DB_H_
Definition algebra.cc:12
Definition common.h:84
const path & file_path() const
Definition db.h:60
static const TextFormat format
Definition table_db.h:18
TableDb(const path &file_path, const string &db_name)
Definition table_db.cc:63
StableDb(const path &file_path, const string &db_name)
Definition table_db.cc:66
virtual bool Open()
Definition table_db.cc:69
Definition text_db.h:34
TextDb(const path &file_path, const string &db_name, const string &db_type, TextFormat format)
Definition text_db.cc:46