Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Examples  

ost::TypeManager Class Reference

This class manages the types for generation of the persistent objects. Type manager for persistence engine. More...

#include <persist.h>

List of all members.

Public Types

typedef std::map<String,NewBaseObjectFunctionStringFunctionMap

Static Public Methods

void add (const char *name, NewBaseObjectFunction construction)
 This adds a new construction function to the type manager. More...

void remove (const char *name)
 And this one removes a type from the managers lists. More...

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. Type manager for persistence engine.

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


Member Typedef Documentation

typedef std::map< String, NewBaseObjectFunction > ost::TypeManager::StringFunctionMap<String,NewBaseObjectFunction>
 


Member Function Documentation

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

This adds a new construction function to the type manager.

BaseObject * ost::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

void ost::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:
Generated at Sat May 12 18:59:48 2007 for GNU CommonC++ by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001