Oracle Coherence for C++ API


TypedSerializer Class Template Reference

#include <coherence/io/pof/TypedSerializer.hpp>

Inherits Object, and PofSerializer.

List of all members.

Detailed Description

template<class T>
class coherence::io::pof::TypedSerializer< T >

A PofSerializer implementation that supports the serialization and deserialization of any class to and from a POF stream, by delegating the serialization logic to templated free functions.

The following set of free functions must be defined for the templated type:

This class is well suited for use with the coherence::lang::Managed template wrapper class. Combining the two allows for the addition of serialization support to existing non-coherence classes.

See also:
mf 2008.07.07

Public Types

typedef spec::Handle Handle
 TypedSerializer<T> Handle definition.
typedef spec::View View
 TypedSerializer<T> View definition.
typedef spec::Holder Holder
 TypedSerializer<T> 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

 TypedSerializer ()
 Create a new TypedSerializer for the user type with template parameter type.

Constructor & Destructor Documentation

TypedSerializer (  )  [inline, protected]

Create a new TypedSerializer for the user type with template parameter type.

the new TypedSerializer

The documentation for this class was generated from the following file:
Copyright © 2000, 2011, Oracle and/or its affiliates. All rights reserved.