21 #ifndef __qSlicerCLIExecutableModuleFactory_h 22 #define __qSlicerCLIExecutableModuleFactory_h 26 #include "qSlicerBaseQTCLIExport.h" 31 #include <ctkAbstractPluginFactory.h> 35 :
public ctkAbstractFactoryFileBasedItem<qSlicerAbstractCoreModule>
48 QString TempDirectory;
52 class qSlicerCLIExecutableModuleFactoryPrivate;
56 public ctkAbstractFileBasedFactory<qSlicerAbstractCoreModule>
59 typedef ctkAbstractFileBasedFactory<qSlicerAbstractCoreModule>
Superclass;
64 void registerItems()
override;
70 QString fileNameToKey(
const QString& fileName)
const override;
72 void setTempDirectory(
const QString& newTempDirectory);
75 bool isValidFile(
const QFileInfo& file)
const override;
77 ctkAbstractFactoryItem<qSlicerAbstractCoreModule>*
78 createFactoryFileBasedItem()
override;
82 QScopedPointer<qSlicerCLIExecutableModuleFactoryPrivate>
d_ptr;
QScopedPointer< qSlicerCLIExecutableModuleFactoryPrivate > d_ptr
qSlicerAbstractCoreModule * instanciator() override
qSlicerCLIExecutableModuleFactoryItem(const QString &newTempDirectory)
void uninstantiate() override
QString runCLIWithXmlArgument()
qSlicerAbstractCoreModule is the base class of any module in Slicer.
QString xmlModuleDescriptionFilePath()
Return path of the expected XML file.
ctkAbstractFileBasedFactory< qSlicerAbstractCoreModule > Superclass