The registry interface for managing individual graph node classes.
More...
#include "murl_graph_i_factory_registry.h"
The registry interface for managing individual graph node classes.
The IFactoryRegistry interface provides methods to add, remove and query different graph node and controller classes. The Graph::IFactory interfaces derives from this interface, in order to be able to actually instantiate any nodes or controllers from the set of classes present in the registry.
◆ RegisterNodeClass()
virtual Bool Murl::Graph::IFactoryRegistry::RegisterNodeClass |
( |
const INode::ClassInfo & |
classInfo | ) |
|
|
pure virtual |
Register a node class.
- Parameters
-
classInfo | The node class' ClassInfo structure, containing a function pointer to the node's Create() method, and the human-readable class name string. |
- Returns
- true if successful.
◆ UnregisterNodeClass()
virtual Bool Murl::Graph::IFactoryRegistry::UnregisterNodeClass |
( |
const INode::ClassInfo & |
classInfo | ) |
|
|
pure virtual |
Unregister a node class.
- Parameters
-
classInfo | The node class' ClassInfo structure. |
- Returns
- true if successful.
◆ GetRegisteredNodeClassInfoIndex() [1/2]
virtual SInt32 Murl::Graph::IFactoryRegistry::GetRegisteredNodeClassInfoIndex |
( |
const INode::ClassInfo & |
classInfo | ) |
const |
|
pure virtual |
Get the index of a registered node class, by its class info structure.
- Parameters
-
classInfo | The class info structure of the node class to query. |
- Returns
- The zero-based index of the class, or -1 if not registered.
◆ GetRegisteredNodeClassInfoIndex() [2/2]
virtual SInt32 Murl::Graph::IFactoryRegistry::GetRegisteredNodeClassInfoIndex |
( |
const String & |
className | ) |
const |
|
pure virtual |
Get the index of a registered node class, by its class name.
- Parameters
-
className | The name of the node class to query. |
- Returns
- The zero-based index of the class, or -1 if not registered.
◆ GetNumberOfRegisteredNodeClassInfos()
virtual UInt32 Murl::Graph::IFactoryRegistry::GetNumberOfRegisteredNodeClassInfos |
( |
| ) |
const |
|
pure virtual |
Get the total number of registered node classes.
- Returns
- The number of registered node classes.
◆ GetRegisteredNodeClassInfo()
virtual const INode::ClassInfo* Murl::Graph::IFactoryRegistry::GetRegisteredNodeClassInfo |
( |
UInt32 |
index | ) |
const |
|
pure virtual |
Get the class info structure of a registered node class at a given index.
- Parameters
-
- Returns
- A pointer to the class info, or 0 if the index is out of range.
◆ RegisterControllerClass()
virtual Bool Murl::Graph::IFactoryRegistry::RegisterControllerClass |
( |
const IController::ClassInfo & |
classInfo | ) |
|
|
pure virtual |
Register a controller class.
- Parameters
-
classInfo | The controller class' ClassInfo structure, containing a function pointer to the controller's Create() method, and the human-readable class name string. |
- Returns
- true if successful.
◆ UnregisterControllerClass()
virtual Bool Murl::Graph::IFactoryRegistry::UnregisterControllerClass |
( |
const IController::ClassInfo & |
classInfo | ) |
|
|
pure virtual |
Unregister a controller class.
- Parameters
-
classInfo | The controller class' ClassInfo structure. |
- Returns
- true if successful.
◆ GetRegisteredControllerClassInfoIndex() [1/2]
virtual SInt32 Murl::Graph::IFactoryRegistry::GetRegisteredControllerClassInfoIndex |
( |
const IController::ClassInfo & |
classInfo | ) |
const |
|
pure virtual |
Get the index of a registered controller class, by its class info structure.
- Parameters
-
classInfo | The class info structure of the controller class to query. |
- Returns
- The zero-based index of the class, or -1 if not registered.
◆ GetRegisteredControllerClassInfoIndex() [2/2]
virtual SInt32 Murl::Graph::IFactoryRegistry::GetRegisteredControllerClassInfoIndex |
( |
const String & |
className | ) |
const |
|
pure virtual |
Get the index of a registered controller class, by its class name.
- Parameters
-
className | The name of the controller class to query. |
- Returns
- The zero-based index of the class, or -1 if not registered.
◆ GetNumberOfRegisteredControllerClassInfos()
virtual UInt32 Murl::Graph::IFactoryRegistry::GetNumberOfRegisteredControllerClassInfos |
( |
| ) |
const |
|
pure virtual |
Get the total number of registered controller classes.
- Returns
- The number of registered controller classes.
◆ GetRegisteredControllerClassInfo()
virtual const IController::ClassInfo* Murl::Graph::IFactoryRegistry::GetRegisteredControllerClassInfo |
( |
UInt32 |
index | ) |
const |
|
pure virtual |
Get the class info structure of a registered controller class at a given index.
- Parameters
-
- Returns
- A pointer to the class info, or 0 if the index is out of range.
The documentation for this interface was generated from the following file:
- murl_graph_i_factory_registry.h