Static Public Member Functions | List of all members
coal::serialization::Serializer Struct Reference

#include <serializer.h>

Static Public Member Functions

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

Detailed Description

Definition at line 13 of file coal/serialization/serializer.h.

Member Function Documentation

◆ loadFromBinary()

template<typename T >
static void coal::serialization::Serializer::loadFromBinary ( T &  object,
const std::string &  filename 
)
inlinestatic

Loads a Derived object from an binary file.

Definition at line 66 of file coal/serialization/serializer.h.

◆ loadFromBuffer()

template<typename T >
static void coal::serialization::Serializer::loadFromBuffer ( T &  object,
boost::asio::streambuf &  container 
)
inlinestatic

Loads an object from a binary buffer.

Definition at line 78 of file coal/serialization/serializer.h.

◆ loadFromString()

template<typename T >
static void coal::serialization::Serializer::loadFromString ( T &  object,
const std::string &  str 
)
inlinestatic

Loads an object from a string.

Definition at line 40 of file coal/serialization/serializer.h.

◆ loadFromStringStream()

template<typename T >
static void coal::serialization::Serializer::loadFromStringStream ( T &  object,
std::istringstream &  is 
)
inlinestatic

Loads an object from a stream string.

Definition at line 28 of file coal/serialization/serializer.h.

◆ loadFromText()

template<typename T >
static void coal::serialization::Serializer::loadFromText ( T &  object,
const std::string &  filename 
)
inlinestatic

Loads an object from a text file.

Definition at line 16 of file coal/serialization/serializer.h.

◆ loadFromXML()

template<typename T >
static void coal::serialization::Serializer::loadFromXML ( T &  object,
const std::string &  filename,
const std::string &  tag_name 
)
inlinestatic

Loads an object from an XML file.

Definition at line 52 of file coal/serialization/serializer.h.

◆ saveToBinary()

template<typename T >
static void coal::serialization::Serializer::saveToBinary ( const T &  object,
const std::string &  filename 
)
inlinestatic

Saves a Derived object as an binary file.

Definition at line 72 of file coal/serialization/serializer.h.

◆ saveToBuffer()

template<typename T >
static void coal::serialization::Serializer::saveToBuffer ( const T &  object,
boost::asio::streambuf &  container 
)
inlinestatic

Saves an object as a binary buffer.

Definition at line 84 of file coal/serialization/serializer.h.

◆ saveToString()

template<typename T >
static std::string coal::serialization::Serializer::saveToString ( const T &  object)
inlinestatic

Saves a Derived object to a string.

Definition at line 46 of file coal/serialization/serializer.h.

◆ saveToStringStream()

template<typename T >
static void coal::serialization::Serializer::saveToStringStream ( const T &  object,
std::stringstream &  ss 
)
inlinestatic

Saves an object to a string stream.

Definition at line 34 of file coal/serialization/serializer.h.

◆ saveToText()

template<typename T >
static void coal::serialization::Serializer::saveToText ( const T &  object,
const std::string &  filename 
)
inlinestatic

Saves an object as a text file.

Definition at line 22 of file coal/serialization/serializer.h.

◆ saveToXML()

template<typename T >
static void coal::serialization::Serializer::saveToXML ( const T &  object,
const std::string &  filename,
const std::string &  tag_name 
)
inlinestatic

Saves an object as an XML file.

Definition at line 59 of file coal/serialization/serializer.h.


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


hpp-fcl
Author(s):
autogenerated on Sat Nov 23 2024 03:45:00