#include <cel_serializable.h>

Public Member Functions | |
| virtual void | serialize (Stream *inStream, size_t inLevel=0, Endian inEndian=endianBig)=0 |
| virtual AutoPtr< Serializable > | duplicate () const =0 |
| const Guid & | getClassId () const |
| String | getClassName () const |
AutoPtr<Serializable> deserialize(
Stream *inStream, size_t inLevel, Endian inEndian);
Definition at line 92 of file cel_serializable.h.
| virtual void Celartem::Serializable::serialize | ( | Stream * | inStream, | |
| size_t | inLevel = 0, |
|||
| Endian | inEndian = endianBig | |||
| ) | [pure virtual] |
This method must be implemented by derived class. To implement the serialization feature of your own class, you should implement this method. All you have to do in the method is to write out the information of the instance to the specified stream that is needed when reproduce the instance in the memory.
| inStream | The stream to which the instance information is written. | |
| inLevel | The serialization level. In the top level, this value is 0. | |
| inEndian | The endianness used to write the data. |
Implemented in Celartem::DataArray< T >, and Celartem::SerializableData< T >.
| virtual AutoPtr<Serializable> Celartem::Serializable::duplicate | ( | ) | const [pure virtual] |
This method must be implemented by derived class. This method duplicates the instance.
Implemented in Celartem::DataArray< T >, and Celartem::SerializableData< T >.
| const Guid& Celartem::Serializable::getClassId | ( | ) | const |
This method returns class Id (GUID) of the instance.
| String Celartem::Serializable::getClassName | ( | ) | const |
This method returns class name of the instance.
Referenced by Celartem::DataStore::get().