 |
CTK
0.1.0
The Common Toolkit is a community effort to provide support code for medical image analysis, surgical navigation, and related projects.
|
Go to the documentation of this file.
21 #ifndef __ctkAbstractLibraryFactory_h
22 #define __ctkAbstractLibraryFactory_h
27 #include <QStringList>
34 template<
typename BaseClassType>
40 #if QT_VERSION < 0x50000
80 template<
typename BaseClassType>
89 virtual bool isValidFile(
const QFileInfo& file)
const;
96 #include "ctkAbstractLibraryFactory.tpp"
virtual void initItem(ctkAbstractFactoryItem< BaseClassType > *item)
SymbolAddressType symbolAddress(const QString &symbol) const
Get symbol address.
bool resolve()
Resolve symbols.
void setLoadHints(QLibrary::LoadHints hints)
Set lookup hints for symbol resolution. See QLibrary documentation.
QHash< QString, SymbolAddressType > ResolvedSymbols
void setSymbols(const QStringList &symbols)
Set the list of symbols.
QHash< QString, SymbolAddressType >::const_iterator ConstIterator
virtual bool isValidFile(const QFileInfo &file) const
QHash< QString, SymbolAddressType >::iterator Iterator
ctkAbstractFactoryItem< BaseClassType > * item(const QString &itemKey) const
Get a Factory item given its itemKey. Return 0 if any.
void setSymbols(const QStringList &symbols)
Set list of required symbols.