|
|
| ttab_dbload (const ttab_dbload &)=delete |
|
ttab_dbload & | operator= (const ttab_dbload &)=delete |
| void | reload () final |
| | 加载后回调
|
| template<typename T> |
| tab_dbload * | get_tabdb () |
|
| csv (const csv &)=delete |
|
csv & | operator= (const csv &)=delete |
| virtual void * | find (int aid) |
| | 无类型数据访问
|
| tab_dbload * | tab (int aid) |
| | 按ID查询记录
|
| std::map< int, tab_dbload > & | tabs () |
| | 获取所有表数据
|
| virtual const std::string & | verify () const |
| | 获取内容哈希
|
| virtual const char * | csvname () |
| | 获取逻辑表名
|
| virtual void | load () |
| | 加载CSV文件
|
| void | foreach (const std::function< void(tab_dbload &)> &afun) |
| | 遍历所有记录
|
| tab_dbload * | find_if (const std::function< bool(tab_dbload &)> &afun) |
| | 条件查询
|
|
|
static ttab_dbload & | instance () |
| static std::string | path () |
| | 获取CSV文件路径
|
| static tools::nhashcode | hash_code () |
| | 获取类型哈希码
|
| static const char * | name () |
| | 获取类型名称
|
| static std::string & | path () |
| | 获取CSV文件根路径
|
| static void | set_path (const std::string &apath) |
| | 设置CSV文件根路径
|
|
|
std::map< std::string, tab_dbload * > | m_name2data |
|
std::map< int, tab_dbload > | m_csv |
| | 表数据存储,key为ID
|
|
std::string | m_verify |
| | 内容MD5哈希
|
◆ get_tabdb()
◆ reload()
| void ngl::ttab_dbload::reload |
( |
| ) |
|
|
inlinefinalvirtual |
The documentation for this struct was generated from the following file: