![]() |
Elm
2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
|
#include <elm/rtti/Type.h>
Inheritance diagram for Serializable:Public Member Functions | |
| virtual | ~Serializable (void) |
| virtual const Type & | type (void) const =0 |
| virtual void * | instantiate (void) const =0 |
| virtual void | serialize (serial2::Serializer &ser, const void *data) const =0 |
| virtual void | unserialize (serial2::Unserializer &uns, void *data) const =0 |
This interface is provided by types supporting serializable facilities.
|
virtual |
Implemented in CStringType, StringType, BoolType, FloatType< T >, IntType< T >, CollectionSerializer< C, T >, CollectionSerializer< Vector< T >, T >, and Class< T, B >.
|
pure virtual |
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. |
Implemented in CollectionSerializer< C, T >, CollectionSerializer< Vector< T >, T >, CStringType, StringType, BoolType, FloatType< T >, IntType< T >, and Class< T, B >.
Get the type corresponding to this enumerable interface.
Implemented in CStringType, StringType, BoolType, FloatType< T >, IntType< T >, and AbstractClass.
|
pure virtual |
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. |
Implemented in CollectionSerializer< C, T >, CollectionSerializer< Vector< T >, T >, Class< T, B >, CStringType, StringType, BoolType, FloatType< T >, and IntType< T >.