librime 1.2
Rime Input Method Engine, the core library
rime::TableDb Class Reference

#include <table_db.h>

Inheritance diagram for rime::TableDb:
Collaboration diagram for rime::TableDb:

Public Member Functions

 TableDb (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 ()

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

◆ TableDb()

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

Member Data Documentation

◆ format

const TextFormat rime::TableDb::format
static
Initial value:
= {
rime_table_entry_parser,
rime_table_entry_formatter,
"Rime table",
}

The documentation for this class was generated from the following files: