pinocchio  3.7.0
A fast and flexible implementation of Rigid Body Dynamics algorithms and their analytical derivatives
 
Loading...
Searching...
No Matches
Serializable< Derived > Struct Template Reference
Inheritance diagram for Serializable< Derived >:

Public Member Functions

void loadFromBinary (boost::asio::streambuf &container)
 Loads a Derived object from a binary container.
 
void loadFromBinary (const std::string &filename)
 Loads a Derived object from an binary file.
 
void loadFromBinary (StaticBuffer &container)
 Loads a Derived object from a static binary container.
 
void loadFromString (const std::string &str)
 Loads a Derived object from a string.
 
void loadFromStringStream (std::istringstream &is)
 Loads a Derived object from a stream string.
 
void loadFromText (const std::string &filename)
 Loads a Derived object from a text file.
 
void loadFromXML (const std::string &filename, const std::string &tag_name)
 Loads a Derived object from an XML file.
 
void saveToBinary (boost::asio::streambuf &container) const
 Saves a Derived object as a binary container.
 
void saveToBinary (const std::string &filename) const
 Saves a Derived object as an binary file.
 
void saveToBinary (StaticBuffer &container) const
 Saves a Derived object as a static binary container.
 
std::string saveToString () const
 Saves a Derived object to a string.
 
void saveToStringStream (std::stringstream &ss) const
 Saves a Derived object to a string stream.
 
void saveToText (const std::string &filename) const
 Saves a Derived object as a text file.
 
void saveToXML (const std::string &filename, const std::string &tag_name) const
 Saves a Derived object as an XML file.
 

Detailed Description

template<class Derived>
struct pinocchio::serialization::Serializable< Derived >

Definition at line 16 of file serializable.hpp.

Member Function Documentation

◆ loadFromBinary() [1/3]

template<class Derived >
void loadFromBinary ( boost::asio::streambuf &  container)
inline

Loads a Derived object from a binary container.

Definition at line 90 of file serializable.hpp.

◆ loadFromBinary() [2/3]

template<class Derived >
void loadFromBinary ( const std::string &  filename)
inline

Loads a Derived object from an binary file.

Definition at line 78 of file serializable.hpp.

◆ loadFromBinary() [3/3]

template<class Derived >
void loadFromBinary ( StaticBuffer container)
inline

Loads a Derived object from a static binary container.

Definition at line 102 of file serializable.hpp.

◆ loadFromString()

template<class Derived >
void loadFromString ( const std::string &  str)
inline

Loads a Derived object from a string.

Definition at line 54 of file serializable.hpp.

◆ loadFromStringStream()

template<class Derived >
void loadFromStringStream ( std::istringstream &  is)
inline

Loads a Derived object from a stream string.

Definition at line 42 of file serializable.hpp.

◆ loadFromText()

template<class Derived >
void loadFromText ( const std::string &  filename)
inline

Loads a Derived object from a text file.

Definition at line 30 of file serializable.hpp.

◆ loadFromXML()

template<class Derived >
void loadFromXML ( const std::string &  filename,
const std::string &  tag_name 
)
inline

Loads a Derived object from an XML file.

Definition at line 66 of file serializable.hpp.

◆ saveToBinary() [1/3]

template<class Derived >
void saveToBinary ( boost::asio::streambuf &  container) const
inline

Saves a Derived object as a binary container.

Definition at line 96 of file serializable.hpp.

◆ saveToBinary() [2/3]

template<class Derived >
void saveToBinary ( const std::string &  filename) const
inline

Saves a Derived object as an binary file.

Definition at line 84 of file serializable.hpp.

◆ saveToBinary() [3/3]

template<class Derived >
void saveToBinary ( StaticBuffer container) const
inline

Saves a Derived object as a static binary container.

Definition at line 108 of file serializable.hpp.

◆ saveToString()

template<class Derived >
std::string saveToString ( ) const
inline

Saves a Derived object to a string.

Definition at line 60 of file serializable.hpp.

◆ saveToStringStream()

template<class Derived >
void saveToStringStream ( std::stringstream &  ss) const
inline

Saves a Derived object to a string stream.

Definition at line 48 of file serializable.hpp.

◆ saveToText()

template<class Derived >
void saveToText ( const std::string &  filename) const
inline

Saves a Derived object as a text file.

Definition at line 36 of file serializable.hpp.

◆ saveToXML()

template<class Derived >
void saveToXML ( const std::string &  filename,
const std::string &  tag_name 
) const
inline

Saves a Derived object as an XML file.

Definition at line 72 of file serializable.hpp.


The documentation for this struct was generated from the following file: