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:
- /usr/share/cruisecontrol-bin-2.6.1/projects/qpid-trunk/cpp/src/qpid/Serializer.h
Generated on Thu Apr 10 11:08:40 2008 for Qpid by
1.4.7