
Public Member Functions | |
| None | serialize (self, IArchive archive) |
| Serializes the current object into the provided archive. | |
| None | deserialize (self, IArchive archive) |
| Deserializes the object's state from the provided archive. | |
Interface for objects that can be serialized to and deserialized from an archive.
Classes implementing this interface provide mechanisms to convert their internal state into a portable form using an IArchive, and restore it later from the same archive.
Definition at line 6 of file iserializable.py.
| None deserialize | ( | self, | |
| IArchive | archive ) |
Deserializes the object's state from the provided archive.
This method reads data from the given IArchive and reconstructs the internal state of the object.
| archive | The archive from which to read the object's data. |
Definition at line 36 of file iserializable.py.
| None serialize | ( | self, | |
| IArchive | archive ) |
Serializes the current object into the provided archive.
This method writes the internal state of the object into the given IArchive so that it can later be reconstructed using :meth:deserialize.
| archive | The archive to which the object data will be written. |
Definition at line 20 of file iserializable.py.