|
dl
|
配置代码生成器 更多...
#include <dl_json_config.h>
类 | |
| struct | GenerateParam |
| struct | Node |
Public 成员函数 | |
| JsonConfig () | |
| bool | Load (std::string_view path_name) |
| 加载原始配置 | |
| std::string | GenerateCode (const GenerateParam ¶m) |
| 生成C++代码 | |
| std::string | GenerateConfigUser (const std::unordered_map< std::string, std::string > &map_type={}) |
| 生成用户配置 | |
配置代码生成器
在文件 dl_json_config.h 第 21 行定义.
|
inline |
在文件 dl_json_config.h 第 44 行定义.
| std::string dl::JsonConfig::GenerateCode | ( | const GenerateParam & | param | ) |
生成C++代码
| std::string dl::JsonConfig::GenerateConfigUser | ( | const std::unordered_map< std::string, std::string > & | map_type = {} | ) |
生成用户配置
| [in] | map_type | 类型替换 |
|
inline |