Chapter 18. Frequently Asked Questions (FAQ)

18.1.1. How do I store more than one object set in a database file?
18.1.2. How do I specify the name of an object set?
18.1.3. How do I serialize a particular data type?
18.1.4. Is it possible to load only a part of the object graph that was saved?
18.1.1. How do I store more than one object set in a database file?
18.1.2. How do I specify the name of an object set?
18.1.3. How do I serialize a particular data type?
18.1.4. Is it possible to load only a part of the object graph that was saved?

18.1.1.

How do I store more than one object set in a database file?

Use a different name for the table_prefix parameter when constructing instances of the ccs::serialization::storage<> class.

18.1.2.

How do I specify the name of an object set?

See the "Serializing multiple data sets into the same database file" topic.

18.1.3.

How do I serialize a particular data type?

See the specific sections in this documentation and look in the unit tests in serialization_unit_tests.cpp to see examples of how to serialize all sorts of data types. Here are some quick links: C++ numeric types, text/string, binary data, date/time, user-defined-types, pointers (and pointer wrappers), STL, tr1, Loki, boost, Intel TBB.

18.1.4.

Is it possible to load only a part of the object graph that was saved?

See the "Partially loading serialized data" topic.