Archives

 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:
 
 Archive class diagram
 
Joomla templates by a4joomla