Verified Commit 50be6947 authored by Justin Carpentier's avatar Justin Carpentier
Browse files

serialization/serializable: extend methods

parent 3d7e7028
......@@ -34,6 +34,30 @@ namespace pinocchio
pinocchio::serialization::saveToText(derived(),filename);
}
/// \brief Loads a Derived object from a stream string.
void loadFromStringStream(std::istringstream & is)
{
pinocchio::serialization::loadFromStringStream(derived(),is);
}
/// \brief Saves a Derived object to a string stream.
void saveToStringStream(std::stringstream & ss) const
{
pinocchio::serialization::saveToStringStream(derived(),ss);
}
/// \brief Loads a Derived object from a string.
void loadFromString(const std::string & str)
{
pinocchio::serialization::loadFromString(derived(),str);
}
/// \brief Saves a Derived object to a string.
std::string saveToString() const
{
return pinocchio::serialization::saveToString(derived());
}
/// \brief Loads a Derived object from an XML file.
void loadFromXML(const std::string & filename,
const std::string & tag_name)
......
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