Base class for objects that can be serialized and deserialized.
More...
#include <Serializable.hpp>
Base class for objects that can be serialized and deserialized.
Definition at line 51 of file Serializable.hpp.
◆ ~Serializable()
| virtual Sleak::Serializable::~Serializable |
( |
| ) |
|
|
virtualdefault |
◆ Deserialize()
Deserializes the object using the specified context.
- Parameters
-
| context | The deserialization context. |
◆ DeserializeFromFile()
| void Sleak::Serializable::DeserializeFromFile |
( |
const std::string & | filePath | ) |
|
Deserializes the object from a file.
- Parameters
-
| filePath | The path to the file from which the object will be loaded. |
Definition at line 150 of file Serializable.cpp.
◆ Serialize()
Serializes the object using the specified context.
- Parameters
-
| context | The serialization context. |
◆ SerializeToFile()
| void Sleak::Serializable::SerializeToFile |
( |
const std::string & | filePath | ) |
const |
Serializes the object to a file.
- Parameters
-
| filePath | The path to the file where the object will be saved. |
Definition at line 137 of file Serializable.cpp.