contains all Class's in the Framework Runtime.
|
Public Member Functions |
| | ClassRegistry () |
| virtual | ~ClassRegistry () |
Static Public Member Functions |
| static ClassRegistry * | create () |
| static void | terminate () |
| static Class * | getClass (const String &className) |
| | returns a Class object from a string.
|
| static Class * | getClassFromClassID (const String &classID) |
| | returns a Class object from a string representing a ClassID/UUID.
|
| static Class * | getClass (const Object *object) |
| | returns a Class object for the object passed in.
|
| static Class * | getClass (Object *object) |
| static Object * | createNewInstance (const String &className) |
| | creates a new instance of an object based on the class name.
|
| static Object * | createNewInstanceFromClassID (const String &classID) |
| | creates a new instance of an object based on the classID.
|
| static void * | createNewInterfaceInstanceFromInterfaceName (const String &interfaceName, const String &implementerClassName) |
| | see ImplementedInterfaceClass::createInterfaceInstance()
|
| static void * | createNewInterfaceInstanceFromInterfaceID (const String &interfaceID, const String &implementerClassID) |
| | see ImplementedInterfaceClass::createInterfaceInstance()
|
| static void | addClass (const String &className, Class *classToRegister) |
| | adds a new Class object to the ClassRegistry
|
| static void | removeClass (const String &className) |
| static void | removeClassByID (const String &classID) |
| static void | addInterface (const String &interfaceName, InterfaceClass *interfaceToRegister) |
| | adds a new InterfaceClass object to the ClassRegistry that represents a particular interface
|
| static void | removeInterface (const String &interfaceName) |
| static void | removeInterfaceByID (const String &interfaceID) |
| static Enumerator< Class * > * | getClasses () |
| | returns an enumeration of all the classes in the system at the time of the call
|
| static Enumerator< InterfaceClass * > * | getInterfaces () |
| static ImplementedInterfaceClass * | getImplementedInterface (const String &implementingClassName, const String &interfaceID) |
| | returns a ImplementedInterfaceClass object from a string.
|
| static InterfaceClass * | getInterface (const String &interfaceName) |
| | returns a InterfaceClass object from a string.
|
| static InterfaceClass * | getInterfaceFromInterfaceID (const String &interfaceID) |
| | returns a InterfaceClass object from a string ID.
|
| static void | addImplementedInterface (ImplementedInterfaceClass *interfaceToRegister, const String &implementerClassID) |
| | Adds an implemented interface class to the registry.
|
| static bool | registerMethod (Method *method, const String &className, const bool &isInterfaceMethod) |
| | attempts to register the method with the class or interface
|
| static bool | registerMethodByUUID (Method *method, const String &UUID, const bool &isInterfaceMethod) |
| | attempts to register the method with the class or interface
|
| static void | dump () |
| | Dumps out the classes in registery to stdout.
|
| static void | removeClass (Class *clazz) |
| | Removes a class from teh ClassRegistry.
|
| static void | removeInterface (InterfaceClass *interfaceClass) |
Protected Member Functions |
| Class * | internal_getClass (const String &className) |
| Class * | internal_getClassFromClassID (const String &classID) |
| Class * | internal_getClass (Object *object) |
| Class * | internal_getClass (const Object *object) |
| Object * | internal_createNewInstance (const String &className) |
| Object * | internal_createNewInstanceFromClassID (const String &classID) |
| void * | internal_createNewInterfaceInstanceFromInterfaceName (const String &interfaceName, const String &implementerClassName) |
| void * | internal_createNewInterfaceInstanceFromInterfaceID (const String &interfaceID, const String &implementerClassID) |
| void | internal_addClass (const String &className, Class *classToRegister) |
| void | internal_addInterface (const String &interfaceName, InterfaceClass *interfaceToRegister) |
| Enumerator< Class * > * | internal_getClasses () |
| Enumerator< InterfaceClass * > * | internal_getInterfaces () |
| ImplementedInterfaceClass * | internal_getImplementedInterface (const String &implementingClassName, const String &interfaceID) |
| InterfaceClass * | internal_getInterface (const String &interfaceName) |
| InterfaceClass * | internal_getInterfaceFromInterfaceID (const String &interfaceID) |
| void | internal_addImplementedInterface (ImplementedInterfaceClass *interfaceToRegister, const String &implementerClassID) |
| bool | internal_registerMethod (Method *method, const String &className, const bool &isInterfaceMethod) |
| bool | internal_registerMethodByUUID (Method *method, const String &UUID, const bool &isInterfaceMethod) |
| void | internal_dump () |
Static Protected Member Functions |
| static ClassRegistry * | getClassRegistry () |
| | a static function that returns the global instance of the ClassRegistry.
|
Protected Attributes |
| Map< String, Class * > | classMap_ |
| | a map of all the classes in the ClassRegistry.
|
| Map< String, InterfaceClass * > | interfaceMap_ |
| | a map of all the interfaces in the ClassRegistry.
|
| std::map< String, InterfaceClass * > | interfaceIDMap_ |
| | a map of all the classes in the ClassRegistry.
|
| std::map< String, ImplementedInterfaceClass * > | implementedInterfacesIDMap_ |
| | a map of all the classes in the ClassRegistry.
|
| std::map< String, Class * > | classIDMap_ |
| | a map of all the classes in the ClassRegistry.
|
Static Protected Attributes |
| static ClassRegistry * | registryInstance_ |
contains all Class's in the Framework Runtime.