22 #ifndef __qSlicerCLILoadableModuleFactory_h 23 #define __qSlicerCLILoadableModuleFactory_h 27 #include <ctkAbstractLibraryFactory.h> 31 #include "qSlicerBaseQTCLIExport.h" 33 class ModuleDescription;
39 :
public ctkFactoryLibraryItem<qSlicerAbstractCoreModule>
42 typedef ctkFactoryLibraryItem<qSlicerAbstractCoreModule>
Superclass;
47 void* libraryLoader, ModuleDescription& desc);
58 QString TempDirectory;
61 class qSlicerCLILoadableModuleFactoryPrivate;
65 public ctkAbstractLibraryFactory<qSlicerAbstractCoreModule>
68 typedef ctkAbstractLibraryFactory<qSlicerAbstractCoreModule>
Superclass;
73 virtual void registerItems();
81 QString fileNameToKey(
const QString& fileName)
const;
83 void setTempDirectory(
const QString& newTempDirectory);
86 virtual ctkAbstractFactoryItem<qSlicerAbstractCoreModule>*
87 createFactoryFileBasedItem();
89 virtual bool isValidFile(
const QFileInfo& file)
const;
93 QScopedPointer<qSlicerCLILoadableModuleFactoryPrivate>
d_ptr;
bool resolveSymbols(ModuleDescription &desc)
ctkAbstractLibraryFactory< qSlicerAbstractCoreModule > Superclass
static bool updateLogo(qSlicerCLILoadableModuleFactoryItem *item, ModuleLogo &logo)
static void loadLibraryAndResolveSymbols(void *libraryLoader, ModuleDescription &desc)
QString resolveXMLModuleDescriptionSymbol()
QScopedPointer< qSlicerCLILoadableModuleFactoryPrivate > d_ptr
qSlicerAbstractCoreModule is the base class of any module in Slicer.
QString xmlModuleDescriptionFilePath() const
Return path of the expected XML file.
virtual qSlicerAbstractCoreModule * instanciator()
qSlicerCLILoadableModuleFactoryItem(const QString &newTempDirectory)
ctkFactoryLibraryItem< qSlicerAbstractCoreModule > Superclass