#include <Libs/Core/ctkAbstractQObjectFactory.h>
|
| ctkAbstractQObjectFactory () |
| Constructor/Desctructor.
|
|
virtual QString | objectNameToKey (const QString &objectName) |
| Return a name allowing to uniquely identify the QObject By default, it return objectName obtained using staticMetaObject.className()
|
|
template<typename ClassType > |
bool | registerQObject (QString &key) |
| Register an object in the factory The parameter key passed by reference will be updated with the associated object name obtained using objectNameToKey(const QString&)
|
|
virtual | ~ctkAbstractQObjectFactory () |
|
| 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 ctkAbstractQObjectFactory< BaseClassType >
Definition at line 33 of file ctkAbstractQObjectFactory.h.
◆ ctkAbstractQObjectFactory()
template<typename BaseClassType >
◆ ~ctkAbstractQObjectFactory()
template<typename BaseClassType >
◆ objectNameToKey()
template<typename BaseClassType >
Return a name allowing to uniquely identify the QObject By default, it return objectName obtained using staticMetaObject.className()
◆ registerQObject()
template<typename BaseClassType >
template<typename ClassType >
Register an object in the factory The parameter key passed by reference will be updated with the associated object name obtained using objectNameToKey(const QString&)
The documentation for this class was generated from the following file: