librime 1.2
Rime Input Method Engine, the core library
rime::VocabularyDb Struct Reference
Inheritance diagram for rime::VocabularyDb:
Collaboration diagram for rime::VocabularyDb:

Public Member Functions

 VocabularyDb (const path &file_path, const string &db_name)
Public Member Functions inherited from rime::TextDb
 TextDb (const path &file_path, const string &db_name, const string &db_type, TextFormat format)
virtual RIME_DLL ~TextDb ()
RIME_DLL bool Open () override
RIME_DLL bool OpenReadOnly () override
RIME_DLL bool Close () override
RIME_DLL bool Backup (const path &snapshot_file) override
RIME_DLL bool Restore (const path &snapshot_file) override
RIME_DLL bool CreateMetadata () override
RIME_DLL bool MetaFetch (const string &key, string *value) override
RIME_DLL bool MetaUpdate (const string &key, const string &value) override
RIME_DLL an< DbAccessorQueryMetadata () override
RIME_DLL an< DbAccessorQueryAll () override
RIME_DLL an< DbAccessorQuery (const string &key) override
RIME_DLL bool Fetch (const string &key, string *value) override
RIME_DLL bool Update (const string &key, const string &value) override
RIME_DLL bool Erase (const string &key) override
Public Member Functions inherited from rime::Db
 Db (const path &file_path, const string &name)
virtual ~Db ()=default
RIME_DLL bool Exists () const
virtual RIME_DLL bool Remove ()
const string & name () const
const pathfile_path () const
bool loaded () const
bool readonly () const
bool disabled () const
void disable ()
void enable ()

Public Attributes

an< DbAccessorcursor

Static Public Attributes

static const TextFormat format

Additional Inherited Members

Public Types inherited from rime::Class< Db, const string & >
using Initializer
Static Public Member Functions inherited from rime::Class< Db, const string & >
static Component * Require (const string &name)
Protected Member Functions inherited from rime::TextDb
void Clear ()
bool LoadFromFile (const path &file)
bool SaveToFile (const path &file)
Protected Attributes inherited from rime::TextDb
string db_type_
TextFormat format_
TextDbData metadata_
TextDbData data_
bool modified_ = false
Protected Attributes inherited from rime::Db
string name_
path file_path_
bool loaded_ = false
bool readonly_ = false
bool disabled_ = false

Constructor & Destructor Documentation

◆ VocabularyDb()

rime::VocabularyDb::VocabularyDb ( const path & file_path,
const string & db_name )

Member Data Documentation

◆ cursor

an<DbAccessor> rime::VocabularyDb::cursor

◆ format

const TextFormat rime::VocabularyDb::format
static
Initial value:
= {
rime_vocabulary_entry_parser,
rime_vocabulary_entry_formatter,
"Rime vocabulary",
}

The documentation for this struct was generated from the following file: