Main object which performs serialization and deserialization.
More...
#include <Serialization.h>
|
| Serialization () |
| Creates serialization object with default serialization context. If your serialization needs custom context use other overload of this function.
|
|
| Serialization (SerializationContextPtr ctx) |
| Creates serialization object with custom context.
|
|
bool | Serialize (const filesystem::Path &filePath, const EngineObject *object) |
| Serialize to file.
|
|
template<typename Type > |
bool | Serialize (const filesystem::Path &filePath, const Type &object) |
| Serialize object to file.
|
|
template<typename Type > |
bool | Serialize (ISerializer &ser, const Type &object) |
| Serialize object to provided serializer. This serialization doesn't write it's output anywhere. More...
|
|
template<typename Type > |
bool | Deserialize (const filesystem::Path &filePath, const Type &object) |
| Deserialize object from file.
|
|
template<typename Type > |
bool | Deserialize (IDeserializer &deser, Type &object) |
| Deserialize object to provided serializer. This deserialization doesn't write it's output anywhere. More...
|
|
|
SerializationContextPtr | m_context |
|
Main object which performs serialization and deserialization.
template<typename Type >
bool sw::Serialization::Deserialize |
( |
IDeserializer & |
deser, |
|
|
Type & |
object |
|
) |
| |
|
inline |
Deserialize object to provided serializer. This deserialization doesn't write it's output anywhere.
- Note
- Deserializer must be initialized with context which is derived from SerializationContext.
template<typename Type >
bool sw::Serialization::Serialize |
( |
ISerializer & |
ser, |
|
|
const Type & |
object |
|
) |
| |
|
inline |
Serialize object to provided serializer. This serialization doesn't write it's output anywhere.
- Note
- Serializer must be initialized with context which is derived from SerializationContext.
The documentation for this class was generated from the following files: