Go to the documentation of this file.
5 #ifndef __pinocchio_serialization_serializable_hpp__
6 #define __pinocchio_serialization_serializable_hpp__
15 template<
class Derived>
21 return *
static_cast<Derived *
>(
this);
25 return *
static_cast<const Derived *
>(
this);
66 void loadFromXML(
const std::string & filename,
const std::string & tag_name)
72 void saveToXML(
const std::string & filename,
const std::string & tag_name)
const
117 #endif // ifndef __pinocchio_serialization_serializable_hpp__
void loadFromXML(T &object, const std::string &filename, const std::string &tag_name)
Loads an object from a XML file.
void loadFromString(const std::string &str)
Loads a Derived object from a string.
void saveToXML(const std::string &filename, const std::string &tag_name) const
Saves a Derived object as an XML file.
void loadFromText(const std::string &filename)
Loads a Derived object from a text file.
void loadFromString(T &object, const std::string &str)
Loads an object from a std::string.
const Derived & derived() const
void saveToBinary(const T &object, const std::string &filename)
Saves an object inside a binary file.
void loadFromBinary(boost::asio::streambuf &container)
Loads a Derived object from a binary container.
Static buffer with pre-allocated memory.
std::string saveToString(const T &object)
Saves an object inside a std::string.
void saveToText(const T &object, const std::string &filename)
Saves an object inside a TXT file.
void saveToText(const std::string &filename) const
Saves a Derived object as a text file.
void loadFromStringStream(T &object, std::istringstream &is)
Loads an object from a std::stringstream.
void saveToStringStream(const T &object, std::stringstream &ss)
Saves an object inside a std::stringstream.
void loadFromStringStream(std::istringstream &is)
Loads a Derived object from a stream string.
void saveToXML(const T &object, const std::string &filename, const std::string &tag_name)
Saves an object inside a XML file.
void loadFromBinary(T &object, const std::string &filename)
Loads an object from a binary file.
void loadFromBinary(const std::string &filename)
Loads a Derived object from an binary file.
void saveToBinary(const std::string &filename) const
Saves a Derived object as an binary file.
void saveToStringStream(std::stringstream &ss) const
Saves a Derived object to a string stream.
void loadFromText(T &object, const std::string &filename)
Loads an object from a TXT file.
void saveToBinary(StaticBuffer &container) const
Saves a Derived object as a static binary container.
void loadFromXML(const std::string &filename, const std::string &tag_name)
Loads a Derived object from an XML file.
std::string saveToString() const
Saves a Derived object to a string.
void loadFromBinary(StaticBuffer &container)
Loads a Derived object from a static binary container.
Main pinocchio namespace.
void saveToBinary(boost::asio::streambuf &container) const
Saves a Derived object as a binary container.
pinocchio
Author(s):
autogenerated on Sun Dec 22 2024 03:41:12