TextSerializer
template <class T> class TextSerializer
Functions
| Name | Description |
|---|---|
| save | Save an object into a text archive object : to save archive : to save into Save a vector of objects into a text archive objects : to save archive : to save into |
| load | Load an object from a text archive object : to load data into archive : to load the object from Load an object from a text archive object : to load data into archive : to load the object from |
| load | Load an object from a text archive object : to load data into archive : to load the object from |
| load | Load an object from a text archive object : to load data into archive : to load the object from nBytes : size of the archive |
| load | Save a vector of objects into a text archive objects : to save archive : to save into |
| load | Save a vector of objects into a text archive objects : to save archive : to save into |
| save | Return the serialized text representation of an object, i.e. save into an empty archive and return this object : Return : |
| load | Load an object from a text archive. |
| load | Load an object from a text archive. |
| load | Load an object from a text archive. |
Function Details
load
virtual void load(T& object, const std::stringstream& archive)
Load an object from a text archive
object
: to load data into
archive
: to load the object from
Load an object from a text archive
object
: to load data into
archive
: to load the object from
virtual void load(T& object, const char* archive)
Load an object from a text archive
object
: to load data into
archive
: to load the object from
virtual void load(T& object, const char* archive, const size_t nBytes)
Load an object from a text archive
object
: to load data into
archive
: to load the object from
nBytes
: size of the archive
virtual void load(std::vector<T>& objects, const std::string& archive)
Save a vector of objects into a text archive
objects
: to save
archive
: to save into
virtual void load(std::vector<T>& objects, const std::stringstream& archive)
Save a vector of objects into a text archive
objects
: to save
archive
: to save into
virtual T load(const std::string& archive)
Load an object from a text archive.
archive
: binary text containing the data
virtual T load(const char* archive)
Load an object from a text archive.
archive
: binary text containing the data
virtual T load(char* archive, const size_t nBytes)
Load an object from a text archive.
archive
: binary text containing the data
nBytes
: size in bytes of the data archive
save
virtual void save(const std::vector<T>& objects, std::string& archive)
Save an object into a text archive
object
: to save
archive
: to save into
Save a vector of objects into a text archive
objects
: to save
archive
: to save into
virtual std::string save(const T& object)
Return the serialized text representation of an object, i.e. save into an empty archive and return this
object
:
Return :