sos:简单的c ++对象序列化

时间:2021-05-15 07:49:49
【文件属性】:
文件名称:sos:简单的c ++对象序列化
文件大小:10KB
文件格式:ZIP
更新时间:2021-05-15 07:49:49
C++ 简单C ++对象序列化(SOS) 一个最小化库,用于将C ++对象序列化为类似JSON的对象。 使用sos::*类构建C ++对象,并将其序列化为JSON或YAML。 您还可以提供自己的自定义序列化程序。 用法 # include < iostream> # include " sos.h " int main ( int argc, char ** argv) { // Build an object sos::Object root; // Build a string and add it to a key in the object root. set ( " username " , sos::String ( " pksunkara " )); // Build a number and add it to a key in the
【文件预览】:
sos-master
----.travis.yml(152B)
----.gitmodules(98B)
----test()
--------test-libsos.cc(4KB)
--------test.h(1KB)
--------ext()
----LICENSE(1KB)
----src()
--------sosYAML.h(2KB)
--------sos.cc(4KB)
--------sos.h(4KB)
--------sosJSON.h(3KB)
----.gitignore(249B)
----Makefile(1KB)
----README.md(2KB)

网友评论