How to save c++ object into a xml file and restore back?
Boost.Serialization and libs11n can both do this. The libs11n manual (available here) has an extensive comparison of the two.
As Tobias said, the C++ FAQ has good background information.
Boost's serialization library might be implementing a lot of the functionality you are looking for.
Serialization is a complex topic which is probably too much for a simple answer on SO. Unfortunately with C++, you don't get it for free as in other languages.
See the C++ faq lite or boost for a start.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With