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

#include <serializable.hpp>

Public Member Functions

void loadFromBinary (boost::asio::streambuf &container)
 Loads a Derived object from a binary container. More...
 
void loadFromBinary (const std::string &filename)
 Loads a Derived object from an binary file. 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 (boost::asio::streambuf &container) const
 Saves a Derived object as a binary container. More...
 
void saveToBinary (const std::string &filename) const
 Saves a Derived object as an binary file. 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 serialization/serializable.hpp.

Member Function Documentation

◆ derived() [1/2]

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

Definition at line 19 of file serialization/serializable.hpp.

◆ derived() [2/2]

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

Definition at line 23 of file serialization/serializable.hpp.

◆ loadFromBinary() [1/3]

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 90 of file serialization/serializable.hpp.

◆ loadFromBinary() [2/3]

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 78 of file serialization/serializable.hpp.

◆ loadFromBinary() [3/3]

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

Loads a Derived object from a static binary container.

Definition at line 102 of file serialization/serializable.hpp.

◆ loadFromString()

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

Loads a Derived object from a string.

Definition at line 54 of file serialization/serializable.hpp.

◆ loadFromStringStream()

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

Loads a Derived object from a stream string.

Definition at line 42 of file serialization/serializable.hpp.

◆ loadFromText()

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 30 of file serialization/serializable.hpp.

◆ loadFromXML()

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 66 of file serialization/serializable.hpp.

◆ saveToBinary() [1/3]

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 96 of file serialization/serializable.hpp.

◆ saveToBinary() [2/3]

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 84 of file serialization/serializable.hpp.

◆ saveToBinary() [3/3]

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 108 of file serialization/serializable.hpp.

◆ saveToString()

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

Saves a Derived object to a string.

Definition at line 60 of file serialization/serializable.hpp.

◆ saveToStringStream()

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 48 of file serialization/serializable.hpp.

◆ saveToText()

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 36 of file serialization/serializable.hpp.

◆ saveToXML()

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 72 of file serialization/serializable.hpp.


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


pinocchio
Author(s):
autogenerated on Sun Dec 22 2024 03:41:16