Class SerializationUtil¶
Defined in File serializationUtil.hpp
Class Documentation¶
-
class
legion::core::serialization
::
SerializationUtil
¶ Public Static Functions
-
template<class
T
>
static inline voidJSONSerialize
(std::stringstream os, T serializable)¶ JSON serialization from a stringstream.
- Parameters
os
: stringstream the ouput for the serialized objectserializable
: template type that represents the object that needs to be serialized
-
template<class
T
>
static inline TJSONDeserialize
(std::stringstream is)¶ JSON deserialization from a stringstream.
- Return
the the deserialized object as type T
- Parameters
is
: stringstream the input of a serialized object
-
template<class
T
>
static inline voidBinarySerialize
(std::stringstream os, T serializable)¶ Binary serialization from a stringstream.
- Parameters
os
: stringstream the ouput for the serialized objectserializable
: template type that represents the object that needs to be serialized
-
template<class
T
>
static inline TBinaryDeserialize
(std::stringstream is)¶ Binary deserialization from a stringstream.
- Return
the the deserialized object as type T
- Parameters
is
: stringstream the input of a serialized object
-
template<class
T
>
static inline voidJSONSerialize
(std::ofstream &os, T serializable)¶ JSON serialization from a filestream.
- Parameters
os
: filestream the ouput for the serialized objectserializable
: template type that represents the object that needs to be serialized
-
template<class
T
>
static inline TJSONDeserialize
(std::ifstream &is)¶ JSON deserialization from a filestream.
- Return
the the deserialized object as type T
- Parameters
is
: filestream the input of a serialized object
-
template<class