#include <coherence/io/pof/PortableTypeSerializer.hpp>
Inherits Object, and PofSerializer.
Unlike legacy PortableObjectSerializer, this class serializes attributes of each class in the object's hierarchy into a separate nested POF stream, which allows for independent evolution of each class in the hierarchy, as well as the evolution of the hierarchy itself (addition of new classes at any level in the hierarchy).
Public Types | |
typedef spec::Handle | Handle |
PortableTypeSerializer Handle definition. | |
typedef spec::View | View |
PortableTypeSerializer View definition. | |
typedef spec::Holder | Holder |
PortableTypeSerializer Holder definition. | |
Public Member Functions | |
virtual void | serialize (PofWriter::Handle hOut, Object::View v) const |
virtual Object::Holder | deserialize (PofReader::Handle hIn) const |
Protected Member Functions | |
PortableTypeSerializer (int32_t nTypeId) | |
Create a new PortableTypeSerializer for the user type with the given type identifier. | |
Protected Attributes | |
int32_t | m_nTypeId |
The type identifier of the user type to serialize and deserialize. |
PortableTypeSerializer | ( | int32_t | nTypeId | ) | [protected] |
Create a new PortableTypeSerializer for the user type with the given type identifier.
nTypeId | the type identifier of the user type to serialize and deserialize |