Verified Commit f4187e4b authored by Justin Carpentier's avatar Justin Carpentier
Browse files

python/serializable: expose {save,load}ToString only

std::stringstream are not exposed in Python
parent 50be6947
......@@ -29,6 +29,11 @@ namespace pinocchio
bp::arg("filename"),"Saves *this inside a text file.")
.def("loadFromText",&Derived::loadFromText,
bp::arg("filename"),"Loads *this from a text file.")
.def("saveToString",&Derived::saveToString,
"Parses the current object to a string.")
.def("loadFromString",&Derived::loadFromString,
bp::arg("string"),
"Parses from the input string the content of the current object.")
.def("saveToXML",&Derived::saveToXML,
bp::args("filename","tag_name"),"Saves *this inside a XML file.")
.def("loadFromXML",&Derived::loadFromXML,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment