创建自己的 Boost::Archive 实现 [英] Creating own implementation of Boost::Archive
问题描述
我目前正在创建一个使用 Boost::Serialization 并且需要实现自己的 Boost::Archive 的概念,因为数据必须以某种方式进行序列化.
I'm currently creating a concept which uses Boost::Serialization and which needs to implement its own Boost::Archive cause the data has to be serialized in a certain way.
文档中有关于实现自定义存档的文档:http://www.boost.org/doc/libs/1_44_0/libs/serialization/doc/index.html
There is documentation about implementing custom archives in the documentation: http://www.boost.org/doc/libs/1_44_0/libs/serialization/doc/index.html
但是我很好奇网络上是否还有其他(现实生活中的)示例.我找不到任何.也许有人可以为我指出来源或文章.
But I'm curious if there are any other (reallife) examples anywhere on the net. I couldn't find any. Perhaps someone could point me to a source or article.
推荐答案
示例实现日志存档
:
http://www.boost.org/doc/libs/1_44_0/libs/serialization/doc/derivation.html
便携式二进制存档
:
http://www.systomath.biz/include/Boost-1_35/libs/serialization/doc/derivation.html#portable_archives
这篇关于创建自己的 Boost::Archive 实现的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!