21 #ifndef __ctkAbstractFileBasedFactory_h 22 #define __ctkAbstractFileBasedFactory_h 26 #include <QStringList> 33 template<
typename BaseClassType>
48 template<
typename BaseClassType>
52 virtual bool isValidFile(
const QFileInfo& file)
const;
53 QString itemKey(
const QFileInfo& file)
const;
57 QString registerFileItem(
const QFileInfo& file);
60 virtual QString
path(
const QString& key);
63 void registerAllFileItems(
const QStringList& directories);
65 bool registerFileItem(
const QString& key,
const QFileInfo& file);
70 virtual QString fileNameToKey(
const QString& path)
const;
73 #include "ctkAbstractFileBasedFactory.tpp" ctkAbstractFactory is the base class of all the factory where items need to be registered before bein...
void setPath(const QString &path)
Get path associated with the object identified by key.