#include <Libs/Core/ctkAbstractObjectFactory.h>
|
| | ctkAbstractObjectFactory () |
| |
| template<typename ClassType > |
| bool | registerObject (const QString &key) |
| | Register an object in the factory.
|
| |
| | ctkAbstractFactory () |
| | Constructor/Desctructor.
|
| |
| virtual BaseClassType * | instance (const QString &itemKey) |
| | Return the instance associated with itemKey if any, otherwise return 0.
|
| |
| virtual BaseClassType * | instantiate (const QString &itemKey) |
| | Create an instance of the object. The item corresponding to the key should have been registered before.
|
| |
| QStringList | itemKeys () const |
| | Get list of all registered item keys.
|
| |
| virtual QString | path (const QString &itemKey) |
| | Get path associated with the item identified by itemKey Should be overloaded in subclasse.
|
| |
| virtual void | printAdditionalInfo () |
| |
| virtual void | registerItems () |
| | Register items with the factory Method provided for convenience - Should be overloaded in subclasse.
|
| |
| void | setSharedItems (const QSharedPointer< HashType > &items) |
| |
| void | setVerbose (bool value) |
| | Enabled verbose output Warning and error message will be printed to standard outputs.
|
| |
| QSharedPointer< HashType > | sharedItems () |
| |
| void | uninstantiate (const QString &itemKey) |
| | Uninstanciate the object. Do nothing if the item given by the key has not be instantiated nor registered.
|
| |
| bool | verbose () const |
| |
| virtual | ~ctkAbstractFactory () |
| |
template<typename BaseClassType>
class ctkAbstractObjectFactory< BaseClassType >
Definition at line 59 of file ctkAbstractObjectFactory.h.
◆ ctkAbstractObjectFactory()
template<typename BaseClassType >
◆ registerObject()
template<typename BaseClassType >
template<typename ClassType >
Register an object in the factory.
The documentation for this class was generated from the following file: