Archives

 The archive is the actual serialization performer in TSL, it is organized similarly to the C++ std::stream:

Leggi tutto: Archives

Streams

As shown in the Archives article, both the input and output archive wrap a reference to a corresponding c++ standard stream. The output archives use an underlying std::ostream, the input archives a std::istream.

Leggi tutto: Streams

Serializing the unserializables...

In case it is not possible to modify the source code it is nevertheless possible to serialize it through a specialization of the bitwise operator & for the [i,o]archive classes.

Leggi tutto: Serializing the unserializables...

Writing a serializable class

In order to write a C++ class serializable through TSL the 'invasive' solution consists of modifying the class making it derived from the tsl::serializable interface.  

Leggi tutto: Writing a serializable class

Error handling

During parsing of an XML or JSON file, in case of error, an exception of type tsl::ParseError is thrown.

Leggi tutto: Error handling

Altri articoli...

  1. Pointers
  2. Plugins and DLL
Joomla templates by a4joomla