|
|
|
|
Documentation |
|
Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages Search
NLMISC::CClassRegistry Class ReferenceThe Class registry where we can instanciate IClassable objects from their names.
More...
#include <class_registry.h>
List of all members.
Static Public Methods |
void | registerClass (const std::string &className, IClassable *(*creator)(), const std::string &typeidCheck) throw (ERegistry) |
| Register your class for future Instanciation. More...
|
IClassable * | create (const std::string &className) throw (ERegistry) |
| Create an object from his class name. More...
|
bool | checkObject (IClassable *obj) |
| check if the object has been correctly registered. Must be used for debug only, and Must compile with RTTI. More...
|
Static Private Methods |
void | init () |
| Inits the ClassRegistry (especially RegistredClasses). More...
|
Static Private Attributes |
std::set< CClassNode > * | RegistredClasses = NULL |
Detailed Description
The Class registry where we can instanciate IClassable objects from their names.
-
Author:
-
Lionel Berenguier , Nevrax France
-
Date:
-
2000
Definition at line 87 of file class_registry.h.
Member Function Documentation
bool NLMISC::CClassRegistry::checkObject |
( |
IClassable * |
obj |
) |
[static] |
|
IClassable * NLMISC::CClassRegistry::create |
( |
const std::string & |
className |
) |
throw (ERegistry) [static] |
|
void NLMISC::CClassRegistry::init |
( |
|
) |
[static, private] |
|
void NLMISC::CClassRegistry::registerClass |
( |
const std::string & |
className, |
|
|
IClassable *(* |
creator)(), |
|
|
const std::string & |
typeidCheck |
|
) |
throw (ERegistry) [static] |
|
Member Data Documentation
The documentation for this class was generated from the following files:
|
|