qpid::SerializeAs< Type, AsType > Struct Template Reference

Serialize a type by converting it to/from another type. More...

#include <Serializer.h>

List of all members.

Public Member Functions

 SerializeAs (Type &t)
template<class S>
void serialize (S &s)
template<class S>
void encode (S &s) const
template<class S>
void decode (S &s)

Public Attributes

Type & value


Detailed Description

template<class Type, class AsType>
struct qpid::SerializeAs< Type, AsType >

Serialize a type by converting it to/from another type.

To serialize type Foo by converting to/from type Bar create a serializable() overload like this:

SerializeAs<Foo,Bar> serializable(Foo& t) { return SerializeAs<Foo,Bar>(t); }


The documentation for this struct was generated from the following file:

Generated on Thu May 15 22:22:32 2008 for Qpid by  doxygen 1.5.5