Archives
- Dettagli
- Categoria: TSL
- Pubblicato Domenica, 30 Settembre 2012 18:03
- Scritto da Giampiero Gabbiani
- Visite: 2441
The archive is the actual serialization performer in TSL, it is organized similarly to the C++ std::stream:
There are two types of archives:
- output archives: serializes concrete instances derived from the abstract class oarchive
- input archives: deserializes concrete instances derived from the abstract class iarchive
The oarchive [iarchive]
- defines the unique template operator &() for [de]serialization
- declare the virtual methods save() [restore()] that [de]serialize the allowed types
The resulting class diagram is the following:
