dl
dl::JsonConfig类 参考

配置代码生成器 更多...

#include <dl_json_config.h>

struct  GenerateParam
 
struct  Node
 

Public 成员函数

 JsonConfig ()
 
bool Load (std::string_view path_name)
 加载原始配置
 
std::string GenerateCode (const GenerateParam &param)
 生成C++代码
 
std::string GenerateConfigUser (const std::unordered_map< std::string, std::string > &map_type={})
 生成用户配置
 

详细描述

配置代码生成器

在文件 dl_json_config.h21 行定义.

构造及析构函数说明

◆ JsonConfig()

dl::JsonConfig::JsonConfig ( )
inline

在文件 dl_json_config.h44 行定义.

成员函数说明

◆ GenerateCode()

std::string dl::JsonConfig::GenerateCode ( const GenerateParam & param)

生成C++代码

注解
定义、用户配置读写代码

◆ GenerateConfigUser()

std::string dl::JsonConfig::GenerateConfigUser ( const std::unordered_map< std::string, std::string > & map_type = {})

生成用户配置

参数
[in]map_type类型替换
注解

◆ Load()

bool dl::JsonConfig::Load ( std::string_view path_name)
inline

加载原始配置

注解

在文件 dl_json_config.h53 行定义.


该类的文档由以下文件生成: