#include <coherence/io/pof/PofSerializer.hpp>
Inherits Object.
Inherited by PofAnnotationSerializer [virtual], PortableObjectSerializer [virtual], PrincipalPofSerializer [virtual], SubjectPofSerializer [virtual], ThrowablePofSerializer [virtual], and TypedSerializer [virtual].
Public Types | |
| typedef spec::Handle | Handle |
| PofSerializer Handle definition. | |
| typedef spec::View | View |
| PofSerializer View definition. | |
| typedef spec::Holder | Holder |
| PofSerializer Holder definition. | |
|
typedef TypedHandle < PofReader > | PofReaderHandle |
| PofReader Handle definition. | |
|
typedef TypedHandle < PofWriter > | PofWriterHandle |
| PofWriter Handle definition. | |
Public Member Functions | |
| virtual void | serialize (PofWriterHandle hOut, Object::View v) const =0 |
| Serialize a user type instance to a POF stream by writing its state using the specified PofWriter. | |
| virtual Object::Holder | deserialize (PofReaderHandle hIn) const =0 |
| Deserialize a user type instance from a POF stream by reading its state using the specified PofReader. | |
| virtual void serialize | ( | PofWriterHandle | hOut, | |
| Object::View | v | |||
| ) | const [pure virtual] |
Serialize a user type instance to a POF stream by writing its state using the specified PofWriter.
An implementation of PofSerializer is required to follow the following steps in sequence for writing out an Object of a user type:
| hOut | a PofWriter to use for writing the object's state | |
| v | an object to serialize |
| virtual Object::Holder deserialize | ( | PofReaderHandle | hIn | ) | const [pure virtual] |
Deserialize a user type instance from a POF stream by reading its state using the specified PofReader.
An implementation of PofSerializer is required to follow the following steps in sequence for reading in an object of a user type:
| hIn | a PofReader to use for reading the Object's state |