Murl::Resource::IObjectFactoryRegistry Interface Referenceabstract
The IObjectFactoryRegistry interface. More...
#include "murl_resource_i_object_factory_registry.h"
Inheritance diagram for Murl::Resource::IObjectFactoryRegistry:
Public Member Functions | |
virtual Bool | RegisterObjectClass (const IObject::ClassInfo &classInfo)=0 |
Register an object class. More... | |
virtual Bool | UnregisterObjectClass (const IObject::ClassInfo &classInfo)=0 |
Unregister a previously registered object class. More... | |
virtual SInt32 | GetRegisteredObjectClassInfoIndex (const IObject::ClassInfo &classInfo) const =0 |
Query the index of a registered object class, by its ClassInfo structure. More... | |
virtual SInt32 | GetRegisteredObjectClassInfoIndex (const String &className) const =0 |
Query the index of a registered object class, by its class name. More... | |
virtual UInt32 | GetNumberOfRegisteredObjectClassInfos () const =0 |
Get the total number of registered object classes. More... | |
virtual const IObject::ClassInfo * | GetRegisteredObjectClassInfo (UInt32 index) const =0 |
Get the ClassInfo structure of a registered object class. More... | |
Detailed Description
The IObjectFactoryRegistry interface.
The IObjectFactoryRegistry interface provides methods to add, remove and query different package classes that can be instantiated using the Resource::IObjectFactory implementing this interface.
Member Function Documentation
◆ RegisterObjectClass()
|
pure virtual |
Register an object class.
- Parameters
-
classInfo The ClassInfo structure of the object to register.
- Returns
- true if successful.
◆ UnregisterObjectClass()
|
pure virtual |
Unregister a previously registered object class.
- Parameters
-
classInfo The ClassInfo structure of the object to unregister.
- Returns
- true if successful.
◆ GetRegisteredObjectClassInfoIndex() [1/2]
|
pure virtual |
Query the index of a registered object class, by its ClassInfo structure.
- Parameters
-
classInfo The class info structure of the object class to query.
- Returns
- The zero-based index, or -1 if not registered.
◆ GetRegisteredObjectClassInfoIndex() [2/2]
|
pure virtual |
Query the index of a registered object class, by its class name.
- Parameters
-
className The name of the object class to query.
- Returns
- The zero-based index, or -1 if not registered.
◆ GetNumberOfRegisteredObjectClassInfos()
|
pure virtual |
Get the total number of registered object classes.
- Returns
- The number of registered object classes.
◆ GetRegisteredObjectClassInfo()
|
pure virtual |
Get the ClassInfo structure of a registered object class.
- Parameters
-
index The index to query, from 0 to GetNumberOfRegisteredObjectClassInfos()-1.
- Returns
- The class info, or null if the index is out of range.
The documentation for this interface was generated from the following file:
- murl_resource_i_object_factory_registry.h