#include <persist.h>
Public Types | |
| typedef std::map<std::string, NewBaseObjectFunction> | StringFunctionMap |
Static Public Methods | |
| __MEMBER_EXPORT void | Add (const char *name, NewBaseObjectFunction construction) |
| This adds a new construction function to the type manager. | |
| __MEMBER_EXPORT void | Remove (const char *name) |
| And this one removes a type from the managers lists. | |
| BaseObject* | CreateInstanceOf (const char *name) |
| This function creates a new object of the required type and returns a pointer to it. More... | |
Its data structures are managed automatically by the system. They are implicitly filled by the constructors who declare classes to the system.
|
|
|
|
|
This adds a new construction function to the type manager.
|
|
|
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 |
|
|
And this one removes a type from the managers lists.
|
1.2.5 written by Dimitri van Heesch,
© 1997-2001