first add files

This commit is contained in:
2019-11-29 11:58:31 +08:00
parent 9c86489a35
commit 15db8e01c7
16 changed files with 677 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
#pragma once
#include<json/json.h>
#include<hgl/type/BaseString.h>
namespace hgl
{
/**
* 转换Json数据类型到普通UTF8字符串
*/
bool JsonToString(const Json::Value &jv_root,UTF8String &str,OSString &error_info);
/**
* 解释一个json数据流
*/
bool ParseJson(Json::Value &root,const char *str,const int size,OSString &error_info);
bool LoadJson(Json::Value &,const hgl::OSString &filename,OSString &error_info);
bool SaveJson(Json::Value &,const hgl::OSString &filename,OSString &error_info);
};//