|
CeresEngine 0.2.0
A game development framework
|
An interface that must be implemented by a class to support custom intrusive serialization. More...
#include <CeresEngine/Serialization/ISerializable.hpp>
Public Member Functions | |
| virtual | ~ISerializable () noexcept=default |
| Defaulted virtual destructor. | |
| virtual void | serialize (Serializer &serializer) const =0 |
| Serializes the object into the given stream. | |
| virtual void | deserialize (Deserializer &deserializer)=0 |
| Deserializes the object from the given stream. | |
An interface that must be implemented by a class to support custom intrusive serialization.
Objects that wish to implement their own serialization scheme, can implement this interface to support intrusive serialization.
|
virtualdefaultnoexcept |
Defaulted virtual destructor.
|
pure virtual |
Deserializes the object from the given stream.
If called from within the context of a Deserializer, the read data is proxied from the deserialization stream.
| deserializer | The deserializer to deserialize the object from. |
|
pure virtual |
Serializes the object into the given stream.
If called from within the context of Serializer, the written data will be embedded on the serialization stream.
| serializer | The serializer to serialize the object to. |