1from abc
import ABC, abstractmethod
9 Interface for objects that can be serialized to and deserialized from an archive.
11 Classes implementing this interface provide mechanisms to convert their internal state
12 into a portable form using an IArchive, and restore it later from the same archive.
14 @ingroup ids_peak_common_python_serialization
16 @since ids_peak_common 1.1
23 Serializes the current object into the provided archive.
25 This method writes the internal state of the object into the given
26 IArchive so that it can later be reconstructed using
29 @param archive: The archive to which the object data will be written.
31 @since ids_peak_common 1.1
39 Deserializes the object's state from the provided archive.
41 This method reads data from the given IArchive and reconstructs
42 the internal state of the object.
44 @param archive: The archive from which to read the object's data.
46 @since ids_peak_common 1.1
Interface for objects that can be serialized to and deserialized from an archive.
None deserialize(self, IArchive archive)
Deserializes the object's state from the provided archive.
None serialize(self, IArchive archive)
Serializes the current object into the provided archive.