Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

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< std::string,
NewBaseObjectFunction
StringFunctionMap

Public Methods

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

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

 CCXX_EXPORT (static BaseObject *) CreateInstanceOf(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<std::string,NewBaseObjectFunction> TypeManager::StringFunctionMap
 


Member Function Documentation

TypeManager::CCXX_EXPORT static BaseObject *   const
 

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

TypeManager::CCXX_MEMBER_EXPORT static   void const
 

And this one removes a type from the managers lists.

TypeManager::CCXX_MEMBER_EXPORT static   void const
 

This adds a new construction function to the type manager.


The documentation for this class was generated from the following file:
Generated at Tue Nov 20 12:34:37 2001 for CommonC++ by doxygen1.2.10 written by Dimitri van Heesch, © 1997-2001