如何将c ++对象保存到xml文件中并还原? [英] How to save c++ object into a xml file and restore back?

查看:109
本文介绍了如何将c ++对象保存到xml文件中并还原?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将c ++对象保存到xml文件中并还原?

How to save c++ object into a xml file and restore back?

推荐答案

Boost.Serialization libs11n 都可以做到这一点。 libs11n手册(可用此处)对两者进行了广泛比较。

Boost.Serialization and libs11n can both do this. The libs11n manual (available here) has an extensive comparison of the two.

Tobias说, C ++常见问题有很好的背景信息。

As Tobias said, the C++ FAQ has good background information.

这篇关于如何将c ++对象保存到xml文件中并还原?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆