Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Stack Of Tasks
pinocchio
Commits
f4187e4b
Verified
Commit
f4187e4b
authored
Nov 16, 2019
by
Justin Carpentier
Browse files
python/serializable: expose {save,load}ToString only
std::stringstream are not exposed in Python
parent
50be6947
Changes
1
Hide whitespace changes
Inline
Side-by-side
bindings/python/serialization/serializable.hpp
View file @
f4187e4b
...
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment