Elm
2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
|
#include <elm/serial2/collections.h>
Public Member Functions | |
CollectionSerializer (void) | |
virtual void * | instantiate (void) const |
virtual void | unserialize (Unserializer &unserializer, void *object) const |
virtual void | serialize (Serializer &serializer, const void *object) const |
Public Member Functions inherited from Type | |
Type (string name="") | |
virtual | ~Type (void) |
string | name (void) const |
const PointerType & | pointer (void) const |
virtual bool | canCast (const Type *t) const |
virtual bool | isVoid (void) const |
virtual bool | isBool (void) const |
virtual bool | isInt (void) const |
virtual bool | isFloat (void) const |
virtual bool | isPtr (void) const |
virtual const PointerType & | asPtr (void) const |
virtual bool | isClass (void) const |
virtual const AbstractClass & | asClass (void) const |
virtual bool | isEnum (void) const |
virtual const Enumerable & | asEnum (void) const |
virtual bool | isSerial (void) const |
virtual const Serializable & | asSerial (void) const |
virtual const TemplateType * | asTemplate (void) const |
virtual const InstanceType * | asInstance (void) const |
virtual const ParamType * | asParam (void) const |
void | initialize (void) |
bool | operator== (const Type &t) const |
bool | operator!= (const Type &t) const |
Public Member Functions inherited from Serializable | |
virtual | ~Serializable (void) |
virtual const Type & | type (void) const =0 |
Static Public Member Functions | |
static rtti::Type & | type (const C &v) |
static void | serialize (Serializer &s, const C &v) |
static void | unserialize (Unserializer &s, C &v) |
Static Public Member Functions inherited from Type | |
static const Type * | get (string name) |
static TypeIter | types (void) |
Static Public Attributes | |
static CollectionSerializer | __type |
Static Public Attributes inherited from Type | |
static const Type & | param0 |
static const Type & | param1 |
static const Type & | param2 |
static const Type & | param3 |
Additional Inherited Members | |
Public Types inherited from Type | |
typedef HashMap< string, const Type * >::Iter | TypeIter |
|
inline |
Implements Serializable.
|
inlinestatic |
Referenced by CollectionSerializer< Vector< T >, T >::serialize().
|
inlinevirtual |
Serialize the data passed in parameter that must be of type corresponding to the interface.
ser | Serializer to use. |
data | Pointer to data to serialize. |
Implements Serializable.
|
inlinestatic |
|
inlinestatic |
Referenced by CollectionSerializer< Vector< T >, T >::unserialize().
|
inlinevirtual |
Unserialize the coming data from the unserializer to the place pointed by data. This place must be of the same type as the serializable type.
uns | Unserializer to get data from. |
data | Pointer to place to unserialize in. |
Implements Serializable.
|
static |
Referenced by CollectionSerializer< Vector< T >, T >::type().