Elm  1.0
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
elm::serial2::AbstractType Class Referenceabstract

#include <elm/serial2/serial.h>

+ Inheritance diagram for elm::serial2::AbstractType:

Public Member Functions

 AbstractType (CString name, AbstractType *base=&T_VOID)
 
void initialize (void)
 
virtual void unserialize (Unserializer &unserializer, void *object)=0
 
virtual void serialize (Serializer &serializer, const void *object)=0
 
- Public Member Functions inherited from elm::AbstractClass
 AbstractClass (CString name, AbstractClass *base=0)
 
virtual ~AbstractClass (void)
 
CString name (void) const
 
AbstractClassbase (void) const
 
virtual void * instantiate (void)=0
 
bool baseOf (AbstractClass *clazz)
 

Static Public Member Functions

static AbstractTypegetType (CString name)
 

Static Public Attributes

static AbstractTypeT_VOID = void_type
 

Detailed Description

Objects representing a type in the serialization module.

Constructor & Destructor Documentation

elm::serial2::AbstractType::AbstractType ( CString  name,
AbstractType base = &T_VOID 
)

Build an abstract type.

Parameters
nameType name (full name path with namespaces).
baseBase type for a class.

References elm::serial2::initializer.

Member Function Documentation

AbstractType * elm::serial2::AbstractType::getType ( CString  name)
static

Find a type by its name.

Parameters
nameType name.
Returns
Found type or NULL.

References elm::serial2::types.

void elm::serial2::AbstractType::initialize ( void  )

For internal use only.

References elm::AbstractClass::name(), and elm::serial2::types.

virtual void elm::serial2::AbstractType::serialize ( Serializer serializer,
const void *  object 
)
pure virtual
virtual void elm::serial2::AbstractType::unserialize ( Unserializer unserializer,
void *  object 
)
pure virtual

Member Data Documentation

AbstractType & elm::serial2::AbstractType::T_VOID = void_type
static

Void type representation.


The documentation for this class was generated from the following files: