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 void registerItems()
override;
81 QString fileNameToKey(
const QString& fileName)
const override;
83 void setTempDirectory(
const QString& newTempDirectory);
86 ctkAbstractFactoryItem<qSlicerAbstractCoreModule>*
87 createFactoryFileBasedItem()
override;
89 bool isValidFile(
const QFileInfo& file)
const override;
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.
qSlicerCLILoadableModuleFactoryItem(const QString &newTempDirectory)
qSlicerAbstractCoreModule * instanciator() override
ctkFactoryLibraryItem< qSlicerAbstractCoreModule > Superclass