21 template<
class PyClass>
22 void visit(PyClass & cl)
const 24#ifndef PINOCCHIO_PYTHON_NO_SERIALIZATION 26 "saveToText", &Derived::saveToText, bp::args(
"self",
"filename"),
27 "Saves *this inside a text file.")
29 "loadFromText", &Derived::loadFromText, bp::args(
"self",
"filename"),
30 "Loads *this from a text file.")
33 "saveToString", &Derived::saveToString, bp::arg(
"self"),
34 "Parses the current object to a string.")
36 "loadFromString", &Derived::loadFromString, bp::args(
"self",
"string"),
37 "Parses from the input string the content of the current object.")
40 "saveToXML", &Derived::saveToXML, bp::args(
"filename",
"tag_name"),
41 "Saves *this inside a XML file.")
43 "loadFromXML", &Derived::loadFromXML, bp::args(
"self",
"filename",
"tag_name"),
44 "Loads *this from a XML file.")
47 "saveToBinary", (
void (Derived::*)(
const std::string &)
const) & Derived::saveToBinary,
48 bp::args(
"self",
"filename"),
"Saves *this inside a binary file.")
50 "loadFromBinary", (
void (Derived::*)(
const std::string &))&Derived::loadFromBinary,
51 bp::args(
"self",
"filename"),
"Loads *this from a binary file.")
55 (
void (Derived::*)(boost::asio::streambuf &)
const) & Derived::saveToBinary,
56 bp::args(
"self",
"buffer"),
"Saves *this inside a binary buffer.")
58 "loadFromBinary", (
void (Derived::*)(boost::asio::streambuf &))&Derived::loadFromBinary,
59 bp::args(
"self",
"buffer"),
"Loads *this from a binary buffer.")
63 (
void (Derived::*)(serialization::StaticBuffer &)
const) & Derived::saveToBinary,
64 bp::args(
"self",
"buffer"),
"Saves *this inside a static binary buffer.")
67 (
void (Derived::*)(serialization::StaticBuffer &))&Derived::loadFromBinary,
68 bp::args(
"self",
"buffer"),
"Loads *this from a static binary buffer.");
71 PINOCCHIO_UNUSED_VARIABLE(cl);