添加JSONTOOL类到工程中
This commit is contained in:
11
inc/hgl/util/JsonTool.h
Normal file
11
inc/hgl/util/JsonTool.h
Normal file
@@ -0,0 +1,11 @@
|
||||
#pragma once
|
||||
#include<string>
|
||||
#include<json/json.h>
|
||||
#include<hgl/type/BaseString.h>
|
||||
|
||||
const std::string JsonToString(const Json::Value &jv_root);
|
||||
|
||||
bool ParseJson(Json::Value &root,const char *str,const int size,std::string *error_info);
|
||||
|
||||
bool LoadJson(Json::Value &,const hgl::OSString &filename);
|
||||
bool SaveJson(Json::Value &,const hgl::OSString &filename);
|
Reference in New Issue
Block a user