????????C++???л?/?????л???Kapok
???????????? ???????[ 2015/5/11 13:48:20 ] ????????????????
????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<int?? int?? string> 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");
?????????????????????????????META?????META??????????????????????????????????????????????????л???????л????
????3.??ó???
????Kapok?????????????????е???????????????????????????????????????META??????????????????????????????????????????????????????1.?????????????????????c++????????????????????2.????漰??????????????Kapok???????л???/?????л???????????????????
????4.?????????????????????????????
????????????????л?/?????л?????????????????????????????????????????????????????????????????????????????????????????????????л?/?????л????????????????????????????κ????????????????c++??з?????????????????????????????????????????е????л?????????????????????????????????鼴????????????????????????
????5.Kapok???????????л?/?????л???
????Kapok???????????rapidjson?? ?????????????????????л????????????????????????????????????????л??????л?????????????????????????????????????????????????Kapok???л????????????
???????л?????
????6.Kapok?????????
????????????????tuple???????л?/?????л????Σ?????Kapok??????messagepack????
????7.Kapok???????????
????????????????c++?汾???????????????????????????????????????????д??????鷳????????????????????????
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11