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

#include <Libs/Core/ctkAbstractLibraryFactory.h>

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

Public Member Functions

void setSymbols (const QStringList &symbols)
 Set the list of symbols. More...
 
- Public Member Functions inherited from ctkAbstractFileBasedFactory< BaseClassType >
QString itemKey (const QFileInfo &file) const
 
virtual QString path (const QString &key)
 Get path associated with the library identified by key. More...
 
QString registerFileItem (const QFileInfo &file)
 
- Public Member Functions inherited from ctkAbstractFactory< BaseClassType >
 ctkAbstractFactory ()
 Constructor/Desctructor. More...
 
virtual BaseClassType * instance (const QString &itemKey)
 Return the instance associated with itemKey if any, otherwise return 0. More...
 
virtual BaseClassType * instantiate (const QString &itemKey)
 Create an instance of the object. The item corresponding to the key should have been registered before. More...
 
QStringList itemKeys () const
 Get list of all registered item keys. More...
 
virtual void printAdditionalInfo ()
 
virtual void registerItems ()
 Register items with the factory Method provided for convenience - Should be overloaded in subclasse. More...
 
void setSharedItems (const QSharedPointer< HashType > &items)
 
void setVerbose (bool value)
 Enabled verbose output Warning and error message will be printed to standard outputs. More...
 
QSharedPointer< HashTypesharedItems ()
 
void uninstantiate (const QString &itemKey)
 Uninstanciate the object. Do nothing if the item given by the key has not be instantiated nor registered. More...
 
bool verbose () const
 
virtual ~ctkAbstractFactory ()
 

Protected Member Functions

virtual void initItem (ctkAbstractFactoryItem< BaseClassType > *item)
 
virtual bool isValidFile (const QFileInfo &file) const
 
- Protected Member Functions inherited from ctkAbstractFileBasedFactory< BaseClassType >
virtual ctkAbstractFactoryItem< BaseClassType > * createFactoryFileBasedItem ()
 
virtual QString fileNameToKey (const QString &path) const
 
void registerAllFileItems (const QStringList &directories)
 
bool registerFileItem (const QString &key, const QFileInfo &file)
 
- Protected Member Functions inherited from ctkAbstractFactory< BaseClassType >
void displayStatusMessage (const QtMsgType &type, const QString &description, const QString &status, bool display)
 
ctkAbstractFactoryItem< BaseClassType > * item (const QString &itemKey) const
 Get a Factory item given its itemKey. Return 0 if any. More...
 
bool registerItem (const QString &key, const QSharedPointer< ctkAbstractFactoryItem< BaseClassType > > &item)
 Call the load method associated with the item. If succesfully loaded, add it to the internal map. More...
 
ctkAbstractFactoryItem< BaseClassType > * sharedItem (const QString &itemKey) const
 

Additional Inherited Members

- Public Types inherited from ctkAbstractFactory< BaseClassType >
typedef QHash< QString, QSharedPointer< ctkAbstractFactoryItem< BaseClassType > > > HashType
 
- Protected Types inherited from ctkAbstractFactory< BaseClassType >
typedef HashType::const_iterator ConstIterator
 
typedef HashType::iterator Iterator
 

Detailed Description

template<typename BaseClassType>
class ctkAbstractLibraryFactory< BaseClassType >

Definition at line 81 of file ctkAbstractLibraryFactory.h.

Member Function Documentation

◆ initItem()

template<typename BaseClassType >
virtual void ctkAbstractLibraryFactory< BaseClassType >::initItem ( ctkAbstractFactoryItem< BaseClassType > *  item)
protectedvirtual

◆ isValidFile()

template<typename BaseClassType >
virtual bool ctkAbstractLibraryFactory< BaseClassType >::isValidFile ( const QFileInfo &  file) const
protectedvirtual

◆ setSymbols()

template<typename BaseClassType >
void ctkAbstractLibraryFactory< BaseClassType >::setSymbols ( const QStringList &  symbols)

Set the list of symbols.


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