Classes | |
struct | Serializable |
struct | StaticBuffer |
Static buffer with pre-allocated memory. More... | |
Functions | |
template<typename T > | |
void | loadFromBinary (T &object, const std::string &filename) |
Loads an object from a binary file. More... | |
template<typename T > | |
void | loadFromBinary (T &object, boost::asio::streambuf &buffer) |
Loads an object from a binary buffer. More... | |
template<typename T > | |
void | loadFromBinary (T &object, StaticBuffer &buffer) |
Loads an object from a static binary buffer. The buffer should be of a sufficient size. More... | |
template<typename T > | |
void | loadFromString (T &object, const std::string &str) |
Loads an object from a std::string. More... | |
template<typename T > | |
void | loadFromStringStream (T &object, std::istringstream &is) |
Loads an object from a std::stringstream. More... | |
template<typename T > | |
void | loadFromText (T &object, const std::string &filename) |
Loads an object from a TXT file. More... | |
template<typename T > | |
void | loadFromXML (T &object, const std::string &filename, const std::string &tag_name) |
Loads an object from a XML file. More... | |
template<typename T > | |
void | saveToBinary (const T &object, const std::string &filename) |
Saves an object inside a binary file. More... | |
template<typename T > | |
void | saveToBinary (const T &object, boost::asio::streambuf &buffer) |
Saves an object to a binary buffer. More... | |
template<typename T > | |
void | saveToBinary (const T &object, StaticBuffer &buffer) |
Saves an object to a static binary buffer. The buffer should be of a sufficient size. More... | |
template<typename T > | |
std::string | saveToString (const T &object) |
Saves an object inside a std::string. More... | |
template<typename T > | |
void | saveToStringStream (const T &object, std::stringstream &ss) |
Saves an object inside a std::stringstream. More... | |
template<typename T > | |
void | saveToText (const T &object, const std::string &filename) |
Saves an object inside a TXT file. More... | |
template<typename T > | |
void | saveToXML (const T &object, const std::string &filename, const std::string &tag_name) |
Saves an object inside a XML file. More... | |
|
inline |
Loads an object from a binary file.
T | Type of the object to deserialize. |
[out] | object | Object in which the loaded data are copied. |
[in] | filename | Name of the file containing the serialized data. |
Definition at line 221 of file archive.hpp.
|
inline |
Loads an object from a binary buffer.
T | Type of the object to deserialize. |
[out] | object | Object in which the loaded data are copied. |
[in] | buffer | Input buffer containing the serialized data. |
Definition at line 271 of file archive.hpp.
|
inline |
Loads an object from a static binary buffer. The buffer should be of a sufficient size.
T | Type of the object to deserialize. |
[out] | object | Object in which the loaded data are copied. |
[in] | buffer | Input buffer containing the serialized data. |
Definition at line 304 of file archive.hpp.
|
inline |
Loads an object from a std::string.
T | Type of the object to deserialize. |
[out] | object | Object in which the loaded data are copied. |
[in] | str | string constaining the serialized content of the object. |
Definition at line 128 of file archive.hpp.
|
inline |
Loads an object from a std::stringstream.
T | Type of the object to deserialize. |
[out] | object | Object in which the loaded data are copied. |
[in] | is | string stream constaining the serialized content of the object. |
Definition at line 96 of file archive.hpp.
|
inline |
Loads an object from a TXT file.
T | Type of the object to deserialize. |
[out] | object | Object in which the loaded data are copied. |
[in] | filename | Name of the file containing the serialized data. |
Definition at line 44 of file archive.hpp.
|
inline |
Loads an object from a XML file.
T | Type of the object to deserialize. |
[out] | object | Object in which the loaded data are copied. |
[in] | filename | Name of the file containing the serialized data. |
[in] | tag_name | XML Tag for the given object. |
Definition at line 162 of file archive.hpp.
void pinocchio::serialization::saveToBinary | ( | const T & | object, |
const std::string & | filename | ||
) |
Saves an object inside a binary file.
T | Type of the object to deserialize. |
[in] | object | Object in which the loaded data are copied. |
[in] | filename | Name of the file containing the serialized data. |
Definition at line 246 of file archive.hpp.
void pinocchio::serialization::saveToBinary | ( | const T & | object, |
boost::asio::streambuf & | buffer | ||
) |
Saves an object to a binary buffer.
T | Type of the object to serialize. |
[in] | object | Object in which the loaded data are copied. |
[out] | buffer | Output buffer containing the serialized data. |
Definition at line 287 of file archive.hpp.
|
inline |
Saves an object to a static binary buffer. The buffer should be of a sufficient size.
T | Type of the object to deserialize. |
[in] | object | Object in which the loaded data are copied. |
[out] | buffer | Output buffer containing the serialized data. |
Definition at line 323 of file archive.hpp.
|
inline |
Saves an object inside a std::string.
T | Type of the object to deserialize. |
[in] | object | Object in which the loaded data are copied. |
Definition at line 145 of file archive.hpp.
|
inline |
Saves an object inside a std::stringstream.
T | Type of the object to deserialize. |
[in] | object | Object in which the loaded data are copied. |
[out] | ss | String stream constaining the serialized content of the object. |
Definition at line 112 of file archive.hpp.
|
inline |
Saves an object inside a TXT file.
T | Type of the object to deserialize. |
[in] | object | Object in which the loaded data are copied. |
[in] | filename | Name of the file containing the serialized data. |
Definition at line 71 of file archive.hpp.
|
inline |
Saves an object inside a XML file.
T | Type of the object to deserialize. |
[in] | object | Object in which the loaded data are copied. |
[in] | filename | Name of the file containing the serialized data. |
[in] | tag_name | XML Tag for the given object. |
Definition at line 193 of file archive.hpp.