|
| void | dl::Json::SetLog (bool open) |
| | 设置是否提示输出日志(请直接使用DisableLog来关闭后,自动恢复)
|
| |
| json | dl::Json::Parse (BufferView buf, bool binary=false) |
| | 从 内存 构建json对象
|
| |
| json | dl::Json::ParseFile (std::string_view path_name, bool binary=false) |
| | 从 文件 构建json对象
|
| |
| json | dl::Json::ParseString (std::string_view str) |
| | 从 字符串 构建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::Cast (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::SaveFile (const json &j, std::string_view path_name, bool binary=false) |
| | 保存到文件
|
| |
| template<typename T, size_t N> |
| void | dl::from_json (const json &j, Array< T, N > &arr) |
| |
| template<typename T, size_t N> |
| void | dl::to_json (json &j, const Array< T, N > &arr) |
| |