Bayonne2 / Common C++ 2 Framework
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Data Structures | Public Types | Static Public Member Functions
TypeManager Class Reference

This class manages the types for generation of the persistent objects. More...

#include <persist.h>

Data Structures

class  Registration
 This manages a registration to the typemanager - attempting to remove problems with the optimisers. More...
 

Public Types

typedef std::map< String,
NewBaseObjectFunction
StringFunctionMap
 

Static Public Member Functions

static void add (const char *name, NewBaseObjectFunction construction)
 This adds a new construction function to the type manager. More...
 
static void remove (const char *name)
 And this one removes a type from the managers lists. More...
 
static BaseObjectcreateInstanceOf (const char *name)
 This function creates a new object of the required type and returns a pointer to it. More...
 

Detailed Description

This class manages the types for generation of the persistent objects.

Its data structures are managed automatically by the system. They are implicitly filled by the constructors who declare classes to the system.

Author
Daniel Silverstone Type manager for persistence engine.

Definition at line 121 of file persist.h.

Member Typedef Documentation

Definition at line 155 of file persist.h.

Member Function Documentation

static void TypeManager::add ( const char *  name,
NewBaseObjectFunction  construction 
)
static

This adds a new construction function to the type manager.

static BaseObject* TypeManager::createInstanceOf ( const char *  name)
static

This function creates a new object of the required type and returns a pointer to it.

NULL is returned if we couldn't find the type

static void TypeManager::remove ( const char *  name)
static

And this one removes a type from the managers lists.


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