Struct Serializer
Defined in File serializer.h
Struct Documentation
-
struct Serializer
Public Static Functions
-
template<typename T>
static inline void loadFromText(T &object, const std::string &filename) Loads an object from a text file.
-
template<typename T>
static inline void saveToText(const T &object, const std::string &filename) Saves an object as a text file.
-
template<typename T>
static inline void loadFromStringStream(T &object, std::istringstream &is) Loads an object from a stream string.
-
template<typename T>
static inline void saveToStringStream(const T &object, std::stringstream &ss) Saves an object to a string stream.
-
template<typename T>
static inline void loadFromString(T &object, const std::string &str) Loads an object from a string.
-
template<typename T>
static inline std::string saveToString(const T &object) Saves a Derived object to a string.
-
template<typename T>
static inline void loadFromXML(T &object, const std::string &filename, const std::string &tag_name) Loads an object from an XML file.
-
template<typename T>
static inline void saveToXML(const T &object, const std::string &filename, const std::string &tag_name) Saves an object as an XML file.
-
template<typename T>
static inline void loadFromBinary(T &object, const std::string &filename) Loads a Derived object from an binary file.
-
template<typename T>
static inline void saveToBinary(const T &object, const std::string &filename) Saves a Derived object as an binary file.
-
template<typename T>