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); }
Definition at line 187 of file Serializer.h.
The documentation for this struct was generated from the following file:
- /home/nsantos/projects/mrg-team/testing/magnum/f10/qpidc/qpid/cpp/src/qpid/Serializer.h