|
|
using | type_tab = tab_mail |
|
using | type_tab |
| | 表类型别名
|
|
|
| ttab_mail (const ttab_mail &)=delete |
|
ttab_mail & | operator= (const ttab_mail &)=delete |
| void | reload () final |
| | 加载后回调
|
|
| csv (const csv &)=delete |
|
csv & | operator= (const csv &)=delete |
| virtual void * | find (int aid) |
| | 无类型数据访问
|
| tab_mail * | tab (int aid) |
| | 按ID查询记录
|
| std::map< int, tab_mail > & | tabs () |
| | 获取所有表数据
|
| virtual const std::string & | verify () const |
| | 获取内容哈希
|
| virtual const char * | csvname () |
| | 获取逻辑表名
|
| virtual void | load () |
| | 加载CSV文件
|
| void | foreach (const std::function< void(tab_mail &)> &afun) |
| | 遍历所有记录
|
| tab_mail * | find_if (const std::function< bool(tab_mail &)> &afun) |
| | 条件查询
|
|
|
static ttab_mail & | 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< int, tab_mail > | m_csv |
| | 表数据存储,key为ID
|
|
std::string | m_verify |
| | 内容MD5哈希
|
◆ reload()
| void ngl::ttab_mail::reload |
( |
| ) |
|
|
inlinefinalvirtual |
The documentation for this struct was generated from the following file: