![]() |
CTK
0.1.0
The Common Toolkit is a community effort to provide support code for medical image analysis, surgical navigation, and related projects.
|
#include <Libs/Core/ctkAbstractFactory.h>
Public Member Functions | |
ctkAbstractFactoryItem () | |
BaseClassType * | instance () const |
BaseClassType * | instantiate () |
QStringList | instantiateErrorStrings () const |
QStringList | instantiateWarningStrings () const |
bool | isInstantiated () const |
virtual bool | load ()=0 |
QStringList | loadErrorStrings () const |
QStringList | loadWarningStrings () const |
void | setVerbose (bool value) |
virtual void | uninstantiate () |
bool | verbose () const |
virtual | ~ctkAbstractFactoryItem () |
Protected Member Functions | |
void | appendInstantiateErrorString (const QString &msg) |
void | appendInstantiateWarningString (const QString &msg) |
void | appendLoadErrorString (const QString &msg) |
void | appendLoadWarningString (const QString &msg) |
void | clearInstantiateErrorStrings () |
void | clearInstantiateWarningStrings () |
void | clearLoadErrorStrings () |
void | clearLoadWarningStrings () |
virtual BaseClassType * | instanciator ()=0 |
Must be reimplemented in subclasses to instanciate a BaseClassType*. More... | |
Protected Attributes | |
BaseClassType * | Instance |
ctkAbstractFactoryItem is the base class of factory items. They are uniquely defined by a key and are responsible for creating/holding an instance of a BaseClassType object.
Definition at line 42 of file ctkAbstractFactory.h.
ctkAbstractFactoryItem< BaseClassType >::ctkAbstractFactoryItem | ( | ) |
|
virtual |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
BaseClassType* ctkAbstractFactoryItem< BaseClassType >::instance | ( | ) | const |
|
protectedpure virtual |
Must be reimplemented in subclasses to instanciate a BaseClassType*.
Implemented in ctkFactoryPluginItem< BaseClassType >, and ctkFactoryObjectItem< BaseClassType, ClassType >.
BaseClassType* ctkAbstractFactoryItem< BaseClassType >::instantiate | ( | ) |
QStringList ctkAbstractFactoryItem< BaseClassType >::instantiateErrorStrings | ( | ) | const |
QStringList ctkAbstractFactoryItem< BaseClassType >::instantiateWarningStrings | ( | ) | const |
bool ctkAbstractFactoryItem< BaseClassType >::isInstantiated | ( | ) | const |
|
pure virtual |
QStringList ctkAbstractFactoryItem< BaseClassType >::loadErrorStrings | ( | ) | const |
QStringList ctkAbstractFactoryItem< BaseClassType >::loadWarningStrings | ( | ) | const |
void ctkAbstractFactoryItem< BaseClassType >::setVerbose | ( | bool | value | ) |
|
virtual |
bool ctkAbstractFactoryItem< BaseClassType >::verbose | ( | ) | const |
|
protected |
Definition at line 81 of file ctkAbstractFactory.h.