Streams
- Dettagli
- Categoria: TSL
- Pubblicato Venerdì, 23 Novembre 2012 00:29
- Scritto da Giampiero Gabbiani
- Visite: 2343
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.
Serializing the unserializables...
- Dettagli
- Categoria: TSL
- Pubblicato Lunedì, 01 Ottobre 2012 01:41
- Scritto da Giampa
- Visite: 2360
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.
Writing a serializable class
- Dettagli
- Categoria: TSL
- Pubblicato Domenica, 30 Settembre 2012 18:10
- Scritto da Giampiero Gabbiani
- Visite: 2355
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.
Error handling
- Dettagli
- Categoria: TSL
- Pubblicato Lunedì, 21 Ottobre 2013 23:25
- Scritto da Giampiero Gabbiani
- Visite: 1857
During parsing of an XML or JSON file, in case of error, an exception of type tsl::ParseError is thrown.