问题描述
我目前正在创建一个使用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实现的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!