ctkAbstractQObjectFactory< BaseClassType > Class Template Reference

#include <Libs/Core/ctkAbstractQObjectFactory.h>

Inheritance diagram for ctkAbstractQObjectFactory< BaseClassType >:
Inheritance graph
[legend]
Collaboration diagram for ctkAbstractQObjectFactory< BaseClassType >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ctkAbstractQObjectFactory ()
virtual BaseClassType * instantiate (const QString &itemKey)
virtual QString objectNameToKey (const QString &objectName)
template<typename ClassType >
bool registerQObject (QString &key)
virtual void uninstantiate (const QString &itemKey)
virtual ~ctkAbstractQObjectFactory ()

Private Member Functions

 ctkAbstractQObjectFactory (const ctkAbstractQObjectFactory &)
void operator= (const ctkAbstractQObjectFactory &)
 Not implemented.

Detailed Description

template<typename BaseClassType>
class ctkAbstractQObjectFactory< BaseClassType >

Definition at line 32 of file ctkAbstractQObjectFactory.h.


Constructor & Destructor Documentation

template<typename BaseClassType >
ctkAbstractQObjectFactory< BaseClassType >::ctkAbstractQObjectFactory (  )  [explicit]

Constructor/Desctructor

template<typename BaseClassType >
virtual ctkAbstractQObjectFactory< BaseClassType >::~ctkAbstractQObjectFactory (  )  [virtual]
template<typename BaseClassType >
ctkAbstractQObjectFactory< BaseClassType >::ctkAbstractQObjectFactory ( const ctkAbstractQObjectFactory< BaseClassType > &   )  [private]

Member Function Documentation

template<typename BaseClassType >
virtual BaseClassType* ctkAbstractQObjectFactory< BaseClassType >::instantiate ( const QString &  itemKey  )  [virtual]

Create an instance of the object identified by itemKey

Reimplemented from ctkAbstractFactory< BaseClassType >.

template<typename BaseClassType >
virtual QString ctkAbstractQObjectFactory< BaseClassType >::objectNameToKey ( const QString &  objectName  )  [virtual]

Return a name allowing to uniquely identify the QObject By default, it return objectName obtained using staticMetaObject.className()

template<typename BaseClassType >
void ctkAbstractQObjectFactory< BaseClassType >::operator= ( const ctkAbstractQObjectFactory< BaseClassType > &   )  [private]

Not implemented.

Reimplemented from ctkAbstractObjectFactory< BaseClassType >.

template<typename BaseClassType >
template<typename ClassType >
bool ctkAbstractQObjectFactory< BaseClassType >::registerQObject ( QString &  key  )  [inline]

Register an object in the factory The parameter key passed by reference will be updated with the associated object name obtained using objectNameToKey()

template<typename BaseClassType >
virtual void ctkAbstractQObjectFactory< BaseClassType >::uninstantiate ( const QString &  itemKey  )  [virtual]

Uninstanciate the object identified by itemKey

Reimplemented from ctkAbstractFactory< BaseClassType >.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines

Generated on 21 May 2010 for CTK by  doxygen 1.6.1