#include <persist.h>
Public Types | |
| typedef std::map< String, NewBaseObjectFunction > | StringFunctionMap |
Static Public Member Functions | |
| void | add (const char *name, NewBaseObjectFunction construction) |
| This adds a new construction function to the type manager. | |
| 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. | |
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.3.9.1