CTK 0.1.0
The Common Toolkit is a community effort to provide support code for medical image analysis, surgical navigation, and related projects.
Loading...
Searching...
No Matches
Public Member Functions | Protected Types | Protected Member Functions | List of all members
ctkFactoryObjectItem< BaseClassType, ClassType > Class Template Reference

#include <Libs/Core/ctkAbstractObjectFactory.h>

Inheritance diagram for ctkFactoryObjectItem< BaseClassType, ClassType >:
Inheritance graph
[legend]
Collaboration diagram for ctkFactoryObjectItem< BaseClassType, ClassType >:
Collaboration graph
[legend]

Public Member Functions

virtual bool load ()
 
- Public Member Functions inherited from ctkAbstractFactoryItem< BaseClassType >
 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 Types

typedef BaseClassType *(* InstantiateObjectFunc) ()
 

Protected Member Functions

virtual BaseClassType * instanciator ()
 Must be reimplemented in subclasses to instanciate a BaseClassType*. More...
 
- Protected Member Functions inherited from ctkAbstractFactoryItem< BaseClassType >
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...
 

Additional Inherited Members

- Protected Attributes inherited from ctkAbstractFactoryItem< BaseClassType >
BaseClassType * Instance
 

Detailed Description

template<typename BaseClassType, typename ClassType>
class ctkFactoryObjectItem< BaseClassType, ClassType >

Definition at line 44 of file ctkAbstractObjectFactory.h.

Member Typedef Documentation

◆ InstantiateObjectFunc

template<typename BaseClassType , typename ClassType >
typedef BaseClassType *(* ctkFactoryObjectItem< BaseClassType, ClassType >::InstantiateObjectFunc) ()
protected

Definition at line 47 of file ctkAbstractObjectFactory.h.

Member Function Documentation

◆ instanciator()

template<typename BaseClassType , typename ClassType >
virtual BaseClassType * ctkFactoryObjectItem< BaseClassType, ClassType >::instanciator ( )
protectedvirtual

Must be reimplemented in subclasses to instanciate a BaseClassType*.

Implements ctkAbstractFactoryItem< BaseClassType >.

◆ load()

template<typename BaseClassType , typename ClassType >
virtual bool ctkFactoryObjectItem< BaseClassType, ClassType >::load ( )
virtual

The documentation for this class was generated from the following file: