Kapok 超简单的序列化库

上传者: yumingxuan_994 | 上传时间: 2021-04-19 18:04:49 | 文件大小: 192KB | 文件类型: ZIP
Kapok FAQ 1.Kapok的特点 简单,易用,header-only,只需要引用Kapok.hpp即可;高效,初步测试性和messagepack相当。 它是纯c++11实现,因此需要支持C++11的编译器。 2.主要功能 对对象进行自动化的序列化和反序列化,用起来非常简单,先来看个序列化/反序列化一个tuple的例子吧。 //序列化 Serializer sr; auto tp = std::make_tuple(10, 12, string("test")); sr.Serialize(tp, "tuple"); //反序列化 DeSerializer dr; std::tuple p; dr.Parse(sr.GetString()); dr.Deserialize(p, "tuple"); struct Person {   int age;   string name;   string city;   META(age, name, city) }; Person p = { 18, "bb", "aa" }; //序列化 Serializer sr; sr.Serialize(p, "Person"); //反序列化 DeSerializer dr; Person person; dr.Parse(sr.GetString()); dr.Deserialize(person, "Person");

文件下载

资源详情

[{"title":"( 59 个子文件 192KB ) Kapok 超简单的序列化库","children":[{"title":"Kapok-master","children":[{"title":"kapok","children":[{"title":"Kapok.hpp <span style='color:#111;'> 67B </span>","children":null,"spread":false},{"title":"JsonUtil.hpp <span style='color:#111;'> 4.28KB </span>","children":null,"spread":false},{"title":"Serializer.hpp <span style='color:#111;'> 7.27KB </span>","children":null,"spread":false},{"title":"Common.hpp <span style='color:#111;'> 7.69KB </span>","children":null,"spread":false},{"title":"traits.hpp <span style='color:#111;'> 7.17KB </span>","children":null,"spread":false},{"title":"DeSerializer.hpp <span style='color:#111;'> 11.28KB </span>","children":null,"spread":false}],"spread":true},{"title":"Test.hpp <span style='color:#111;'> 417B </span>","children":null,"spread":false},{"title":".gitmodules <span style='color:#111;'> 71B </span>","children":null,"spread":false},{"title":"fmt","children":null,"spread":false},{"title":"rapidjson","children":[{"title":"prettywriter.h <span style='color:#111;'> 9.23KB </span>","children":null,"spread":false},{"title":"reader.h <span style='color:#111;'> 76.67KB </span>","children":null,"spread":false},{"title":"msinttypes","children":[{"title":"inttypes.h <span style='color:#111;'> 8.18KB </span>","children":null,"spread":false},{"title":"stdint.h <span style='color:#111;'> 9.17KB </span>","children":null,"spread":false}],"spread":true},{"title":"encodings.h <span style='color:#111;'> 27.80KB </span>","children":null,"spread":false},{"title":"stringbuffer.h <span style='color:#111;'> 3.71KB </span>","children":null,"spread":false},{"title":"rapidjson.h <span style='color:#111;'> 20.91KB </span>","children":null,"spread":false},{"title":"istreamwrapper.h <span style='color:#111;'> 3.38KB </span>","children":null,"spread":false},{"title":"allocators.h <span style='color:#111;'> 9.93KB </span>","children":null,"spread":false},{"title":"stream.h <span style='color:#111;'> 5.35KB </span>","children":null,"spread":false},{"title":"filewritestream.h <span style='color:#111;'> 3.07KB </span>","children":null,"spread":false},{"title":"filereadstream.h <span style='color:#111;'> 2.92KB </span>","children":null,"spread":false},{"title":"fwd.h <span style='color:#111;'> 3.94KB </span>","children":null,"spread":false},{"title":"internal","children":[{"title":"regex.h <span style='color:#111;'> 24.24KB </span>","children":null,"spread":false},{"title":"biginteger.h <span style='color:#111;'> 8.92KB </span>","children":null,"spread":false},{"title":"pow10.h <span style='color:#111;'> 3.51KB </span>","children":null,"spread":false},{"title":"strtod.h <span style='color:#111;'> 8.46KB </span>","children":null,"spread":false},{"title":"strfunc.h <span style='color:#111;'> 1.85KB </span>","children":null,"spread":false},{"title":"itoa.h <span style='color:#111;'> 10.06KB </span>","children":null,"spread":false},{"title":"swap.h <span style='color:#111;'> 1.39KB </span>","children":null,"spread":false},{"title":"stack.h <span style='color:#111;'> 6.86KB </span>","children":null,"spread":false},{"title":"dtoa.h <span style='color:#111;'> 7.91KB </span>","children":null,"spread":false},{"title":"diyfp.h <span style='color:#111;'> 11.24KB </span>","children":null,"spread":false},{"title":"ieee754.h <span style='color:#111;'> 2.95KB </span>","children":null,"spread":false},{"title":"meta.h <span style='color:#111;'> 6.42KB </span>","children":null,"spread":false}],"spread":false},{"title":"filestream.h <span style='color:#111;'> 2.51KB </span>","children":null,"spread":false},{"title":"ostreamwrapper.h <span style='color:#111;'> 2.17KB </span>","children":null,"spread":false},{"title":"pointer.h <span style='color:#111;'> 57.00KB </span>","children":null,"spread":false},{"title":"memorybuffer.h <span style='color:#111;'> 2.50KB </span>","children":null,"spread":false},{"title":"schema.h <span style='color:#111;'> 78.26KB </span>","children":null,"spread":false},{"title":"encodedstream.h <span style='color:#111;'> 10.44KB </span>","children":null,"spread":false},{"title":"memorystream.h <span style='color:#111;'> 2.60KB </span>","children":null,"spread":false},{"title":"error","children":[{"title":"en.h <span style='color:#111;'> 3.78KB </span>","children":null,"spread":false},{"title":"error.h <span style='color:#111;'> 5.69KB </span>","children":null,"spread":false}],"spread":false},{"title":"document.h <span style='color:#111;'> 110.62KB </span>","children":null,"spread":false},{"title":"writer.h <span style='color:#111;'> 21.12KB </span>","children":null,"spread":false}],"spread":false},{"title":"test_performance.cpp <span style='color:#111;'> 2.18KB </span>","children":null,"spread":false},{"title":"CMakeLists.txt <span style='color:#111;'> 2.28KB </span>","children":null,"spread":false},{"title":"main.cpp <span style='color:#111;'> 9.35KB </span>","children":null,"spread":false},{"title":"LICENSE <span style='color:#111;'> 11.06KB </span>","children":null,"spread":false},{"title":"test","children":[{"title":"stl.cpp <span style='color:#111;'> 5.28KB </span>","children":null,"spread":false},{"title":"primitive.cpp <span style='color:#111;'> 1.28KB </span>","children":null,"spread":false},{"title":"CMakeLists.txt <span style='color:#111;'> 321B </span>","children":null,"spread":false},{"title":"panic.cpp <span style='color:#111;'> 900B </span>","children":null,"spread":false},{"title":"user.cpp <span style='color:#111;'> 1.89KB </span>","children":null,"spread":false},{"title":"UnitTest.hpp <span style='color:#111;'> 7.10KB </span>","children":null,"spread":false}],"spread":true},{"title":"test_kapok.hpp <span style='color:#111;'> 164B </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 547B </span>","children":null,"spread":false},{"title":"vcproject","children":[{"title":"vcproject.sln <span style='color:#111;'> 1.25KB </span>","children":null,"spread":false},{"title":"vcproject","children":[{"title":"vcproject.vcxproj <span style='color:#111;'> 7.18KB </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"unit_test.hpp <span style='color:#111;'> 6.53KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明