librime: table_db.h Source File

| 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
14 class 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
22 class 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_
text_db.h
rime
Definition algebra.cc:12
rime::path
Definition common.h:84
rime::Db::file_path
const path & file_path() const
Definition db.h:60
rime::TableDb::format
static const TextFormat format
Definition table_db.h:18
rime::TableDb::TableDb
TableDb(const path &file_path, const string &db_name)
Definition table_db.cc:63
rime::StableDb::StableDb
StableDb(const path &file_path, const string &db_name)
Definition table_db.cc:66
rime::StableDb::Open
virtual bool Open()
Definition table_db.cc:69
rime::TextFormat
Definition text_db.h:34
rime::TextDb::TextDb
TextDb(const path &file_path, const string &db_name, const string &db_type, TextFormat format)
Definition text_db.cc:46