|
dl
|
json格式相关 更多...
类 | |
| struct | dl::Json::DisableLog |
| 临时关闭json日志 更多... | |
命名空间 | |
| namespace | dl |
| namespace | dl::Json |
| json格式 | |
类型定义 | |
| using | json = nlohmann::json |
函数 | |
| void | dl::Json::SetLog (bool open) |
| 设置是否提示输出日志(请直接使用DisableLog来关闭后,自动恢复) | |
| json | dl::Json::Parse (std::string_view path_name) |
| 从 文件 构建json对象 | |
| json | dl::Json::Parse (BufferView buf) |
| 从 内存 构建json对象 | |
| template<typename T> | |
| bool | dl::Json::Get (const json &j, const std::string &name, T &t) |
| 从json返回值,不存在则返回false,打印日志 | |
| template<typename T> | |
| bool | dl::Json::Get (const json &j, T &t) |
| 从json返回值,不存在则返回false,打印日志 | |
| std::string | dl::Json::Dump (json &j) |
| dump | |
| std::string | dl::Json::Dump (BufferView buf) |
| dump | |
变量 | |
| bool | dl::Json::g_bJsonLog |