Go to the documentation of this file.
5 #ifndef __pinocchio_python_serialization_serializable_hpp__
6 #define __pinocchio_python_serialization_serializable_hpp__
18 template<
typename Derived>
22 template<
class PyClass>
25 #ifndef PINOCCHIO_PYTHON_NO_SERIALIZATION
28 "Saves *this inside a text file.")
31 "Loads *this from a text file.")
35 "Parses the current object to a string.")
38 "Parses from the input string the content of the current object.")
42 "Saves *this inside a XML file.")
45 "Loads *this from a XML file.")
48 "saveToBinary", (
void(Derived::*)(
const std::string &)
const) & Derived::saveToBinary,
49 bp::args(
"self",
"filename"),
"Saves *this inside a binary file.")
51 "loadFromBinary", (
void(Derived::*)(
const std::string &)) & Derived::loadFromBinary,
52 bp::args(
"self",
"filename"),
"Loads *this from a binary file.")
56 (
void(Derived::*)(boost::asio::streambuf &)
const) & Derived::saveToBinary,
57 bp::args(
"self",
"buffer"),
"Saves *this inside a binary buffer.")
60 (
void(Derived::*)(boost::asio::streambuf &)) & Derived::loadFromBinary,
61 bp::args(
"self",
"buffer"),
"Loads *this from a binary buffer.")
66 bp::args(
"self",
"buffer"),
"Saves *this inside a static binary buffer.")
70 bp::args(
"self",
"buffer"),
"Loads *this from a static binary buffer.");
80 #endif // ifndef __pinocchio_python_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(T &object, const std::string &str)
Loads an object from a std::string.
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 saveToXML(const T &object, const std::string &filename, const std::string &tag_name)
Saves an object inside a XML file.
void loadFromText(T &object, const std::string &filename)
Loads an object from a TXT file.
void visit(PyClass &cl) const
Main pinocchio namespace.
#define PINOCCHIO_UNUSED_VARIABLE(var)
Helper to declare that a parameter is unused.
pinocchio
Author(s):
autogenerated on Thu Dec 19 2024 03:41:32