Saving/Loading C++ objects into a file

B

Bora

Is there a resource that discusses how C++ objects are saved to and loaded
from files? Sorry if this is not a strictly C++ issue. In particular, I am
looking for information about maintaining backwards compatibility of objects
as they go through a series of changes such as adding or removing data
members, etc.

Thanks,
Bora
 
V

Victor Bazarov

Bora said:
Is there a resource that discusses how C++ objects are saved to and loaded
from files? Sorry if this is not a strictly C++ issue. In particular, I am
looking for information about maintaining backwards compatibility of objects
as they go through a series of changes such as adding or removing data
members, etc.

Search the Web for "serialization C++". I bet there are tons of info.
 
P

Pavel Vozenilek

Bora said:
Is there a resource that discusses how C++ objects are saved to and loaded
from files? Sorry if this is not a strictly C++ issue. In particular, I am
looking for information about maintaining backwards compatibility of
objects as they go through a series of changes such as adding or removing
data members, etc.
http://www.boost.org/libs/serialization/doc/index.html

It provides support for versioned data.

/Pavel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,534
Members
45,007
Latest member
OrderFitnessKetoCapsules

Latest Threads

Top