#include <coherence/io/pof/reflect/Codec.hpp>
Inherits Object.
Inherited by Codecs::AbstractCodec [virtual].
In the case of deserialization this could be to return a concrete implementation and with serialization this could be to explicitly call a specific method on PofWriter that is not carried out by PofWriter::writeObject.
Public Types | |
| typedef spec::Handle | Handle |
| Codec Handle definition. | |
| typedef spec::View | View |
| Codec View definition. | |
| typedef spec::Holder | Holder |
| Codec Holder definition. | |
Public Member Functions | |
| virtual Object::Holder | decode (PofReader::Handle hIn, int32_t nIndex) const =0 |
| Deserialize an object from the provided PofReader. | |
| virtual void | encode (PofWriter::Handle hOut, int32_t nIndex, Object::View v) const =0 |
| Serialize an object using the provided PofWriter. | |
| virtual Object::Holder decode | ( | PofReader::Handle | hIn, | |
| int32_t | nIndex | |||
| ) | const [pure virtual] |
Deserialize an object from the provided PofReader.
Implementing this interface allows introducing specific return implementations.
| hIn | the PofReader to read from | |
| nIndex | the index of the POF property to deserialize |
| IOException | if an I/O error occurs |
Implemented in Codecs::DefaultCodec.
| virtual void encode | ( | PofWriter::Handle | hOut, | |
| int32_t | nIndex, | |||
| Object::View | v | |||
| ) | const [pure virtual] |
Serialize an object using the provided PofWriter.
| hOut | the PofWriter to read from | |
| nIndex | the index of the POF property to serialize | |
| v | the value to serialize |
| IOException | if an I/O error occurs |
Implemented in Codecs::AbstractCodec.