Public Member Functions | Private Member Functions | List of all members
pinocchio::serialization::Serializable< Derived > Struct Template Reference

#include <serializable.hpp>

Inheritance diagram for pinocchio::serialization::Serializable< Derived >:
Inheritance graph
[legend]

Public Member Functions

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

Private Member Functions

Derived & derived ()
 
const Derived & derived () const
 

Detailed Description

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

Definition at line 16 of file src/serialization/serializable.hpp.

Member Function Documentation

template<class Derived>
Derived& pinocchio::serialization::Serializable< Derived >::derived ( )
inlineprivate

Definition at line 20 of file src/serialization/serializable.hpp.

template<class Derived>
const Derived& pinocchio::serialization::Serializable< Derived >::derived ( ) const
inlineprivate

Definition at line 21 of file src/serialization/serializable.hpp.

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

Loads a Derived object from an binary file.

Definition at line 76 of file src/serialization/serializable.hpp.

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

Loads a Derived object from a binary container.

Definition at line 88 of file src/serialization/serializable.hpp.

template<class Derived>
void pinocchio::serialization::Serializable< Derived >::loadFromBinary ( StaticBuffer container)
inline

Loads a Derived object from a static binary container.

Definition at line 100 of file src/serialization/serializable.hpp.

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

Loads a Derived object from a string.

Definition at line 50 of file src/serialization/serializable.hpp.

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

Loads a Derived object from a stream string.

Definition at line 38 of file src/serialization/serializable.hpp.

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

Loads a Derived object from a text file.

Definition at line 26 of file src/serialization/serializable.hpp.

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

Loads a Derived object from an XML file.

Definition at line 62 of file src/serialization/serializable.hpp.

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

Saves a Derived object as an binary file.

Definition at line 82 of file src/serialization/serializable.hpp.

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

Saves a Derived object as a binary container.

Definition at line 94 of file src/serialization/serializable.hpp.

template<class Derived>
void pinocchio::serialization::Serializable< Derived >::saveToBinary ( StaticBuffer container) const
inline

Saves a Derived object as a static binary container.

Definition at line 106 of file src/serialization/serializable.hpp.

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

Saves a Derived object to a string.

Definition at line 56 of file src/serialization/serializable.hpp.

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

Saves a Derived object to a string stream.

Definition at line 44 of file src/serialization/serializable.hpp.

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

Saves a Derived object as a text file.

Definition at line 32 of file src/serialization/serializable.hpp.

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

Saves a Derived object as an XML file.

Definition at line 69 of file src/serialization/serializable.hpp.


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


pinocchio
Author(s):
autogenerated on Tue Jun 1 2021 02:45:06