1 Star 0 Fork 0

我心飞翔 / OnePara

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

OnePara

支持任意类型及结构的C++通用数据结构,从繁杂的数据结构定义中解放出来。可以接受处理任意形式的数据结构及数据类型,简单如单个任意类型数据int/string/char/float等,及数组、各种树及以上各种的混合嵌套,当然也很容易和xml、json等等兼容相互导入导出,添加了bson的支持,可以通过bson兼容json及xml(也可以很容易添加其他)。 C ++ generic data structures that support any type and structure are freed from the complex data structure definition. Can accept any form of data structures and data types, as simple as a single arbitrary type of data int / string / char / float, and arrays, a variety of trees and a variety of mixed nested, of course, is very easy and xml, json Etc. Compatible with each other to import and export, add bson support, compatible with json and xml through bson (also can easily add other)

example:

OnePara in, out; 
in["number"] = 123; 
in["table"] = "user"; 
in["data.email"] = "user@13.com"; 
in["data.CreateTime"] = "1234567"; 
in["data"]["who"] = "sunny";

out = in;
out.display("outshow");
out["change"] = in["data"];
out.display("outshow2");

in["out"] = out;
in.display("in");

in.remove("data.who");
in.display("in");
in.clear();
in.display("in");

out.clear();

空文件

简介

支持任意类型及结构的C++通用数据结构,从繁杂的数据结构定义中解放出来。可以接受处理任意形式的数据结构及数据类型,简单如单个任意类型数据int/string/char/float等,及数组、各种树及以上各种的混合嵌套,当然也很容易和xml、json等等兼容相互导入导出,添加了bson的支持,可以通过bson兼容json及xml(也可以很容易添加其他)。C ++ generic data structures that support any type and structure are freed from the complex data structure definition. Can accept any form of data structures and data typ... 展开 收起
C++
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
C++
1
https://gitee.com/krqi/OnePara.git
git@gitee.com:krqi/OnePara.git
krqi
OnePara
OnePara
master

搜索帮助