|
Computer Assited Medical Intervention Tool Kit
version 5.0
|
|
Go to the documentation of this file.
26 #ifndef CEPGENERATOR_H
27 #define CEPGENERATOR_H
39 #if defined(_WIN32) && !defined(__MINGW32__) // MSVC only
40 #pragma warning( disable : 4290 )
197 std::unique_ptr<cepcoreschema::Cep>
domCep;
216 #endif // CEPGENERATOR_H
static QString getDirectoryName(QString genericName)
Definition: ClassNameHandler.cpp:57
virtual void generateViewersDirectory()
Generate the Libraries directory.
Definition: CepGenerator.cpp:401
void createDomTree()
Create the DOM attribute domCep from the XML CEP manifest.
Definition: CepGenerator.cpp:105
void initMyResource()
Definition: CepGenerator.cpp:55
static const QString cepActionsDirectoryName
Definition: CepGenerator.cpp:46
std::unique_ptr< cepcoreschema::Cep > domCep
XML DOM Element create by CodeSynthesis This cep instance contains all of the informations of the xml...
Definition: CepGenerator.h:197
void setXmlFileName(QString xmlFileName)
Set the input XML CEP manifest (ant check its xml validity)
Definition: CepGenerator.cpp:84
QString licence
overall licence of the CEP
Definition: CepGenerator.h:212
virtual void createViewersExtensionDoms()
Create the ViewersDom if needed and call the appropriate methods to generate the viewer extensions.
Definition: CepGenerator.cpp:469
virtual void generateComponentsDirectory()
Generate the Components directory.
Definition: CepGenerator.cpp:376
Generate the library.
Definition: LibraryGenerator.h:50
Generate an viewer extension.
Definition: ViewerExtensionGenerator.h:51
virtual void copyFindCamiTK()
Generate the FindCamiTK file.
Definition: CepGenerator.cpp:342
QDir devDirectoryName
Where to store the produced files.
Definition: CepGenerator.h:203
static const QString cepSchemaNamespace
Definition: CepGenerator.cpp:53
Common abstract class to generate extensions.
Definition: ExtensionGenerator.h:49
static const QString cepComponentsDirectoryName
Definition: CepGenerator.cpp:48
static const QString cepLibrariesDirectoryName
Definition: CepGenerator.cpp:49
CepGenerator()
Create an empty CepGenerator.
Definition: CepGenerator.cpp:61
virtual void generateGlobalCMakeLists()
Generate CMakeLists file.
Definition: CepGenerator.cpp:207
void setDevDirectoryName(QString devDirectoryName)
Where to generate the CEP directories and files.
Definition: CepGenerator.cpp:94
virtual void generateCopyright()
Generate copyright file.
Definition: CepGenerator.cpp:280
void process()
call all methods to generate the CEP from the DomTree.
Definition: CepGenerator.cpp:494
static const QString cepManifestName
Definition: CepGenerator.cpp:51
virtual void createLibrarieDoms()
Create the LibrariesDom if needed and call the appropriate methods to generate the libraries.
Definition: CepGenerator.cpp:450
QVector< ExtensionGenerator * > extensions
Action or Component Extensions.
Definition: CepGenerator.h:209
virtual void generateReadme()
Generate Readme File.
Definition: CepGenerator.cpp:307
virtual void generateDirectoryTree()
Create the general directory tree (the same for every CEP).
Definition: CepGenerator.cpp:119
Generate a component extension.
Definition: ComponentExtensionGenerator.h:53
QString cepDirectoryName
Subdirectory where the CEP sources will be stored (updated when generating the directory tree)
Definition: CepGenerator.h:206
virtual void generateActionsDirectory()
Generate the Actions directory.
Definition: CepGenerator.cpp:351
virtual ~CepGenerator()
Definition: CepGenerator.cpp:78
virtual void generateExtensions()
Definition: CepGenerator.cpp:487
virtual void setLicence()
Set the licence ine the licence variable to be included later in the generated files.
Definition: CepGenerator.cpp:258
static const QString cepApplicationsDirectoryName
Definition: CepGenerator.cpp:47
void serializeManifest(QString fileName="")
Serialize the manifest ie serialize the domCep to a std::string.
Definition: CepGenerator.cpp:160
virtual void generateApplicationsDirectory()
Generate the Applications directory.
Definition: CepGenerator.cpp:364
static const QString cepViewersDirectoryName
Definition: CepGenerator.cpp:50
Generate an action extension.
Definition: ActionExtensionGenerator.h:49
virtual void generateLibrariesDirectory()
Generate the Libraries directory.
Definition: CepGenerator.cpp:388
virtual void createActionExtensionDoms()
Create the ActionExtensionDom if needed and call the appropriate methods to generate the action exten...
Definition: CepGenerator.cpp:414
virtual void createComponentExtensionDoms()
Create the ComponentExtensionDom if needed and call the appropriate methods to generate the component...
Definition: CepGenerator.cpp:432
QFileInfo xmlFileName
Where to find the original XML description of the CEP.
Definition: CepGenerator.h:200
Definition: ActionExtensionGenerator.h:36
static const QString cepManifestExtension
Definition: CepGenerator.cpp:52
This class contains the entry points to generate CEP.
Definition: CepGenerator.h:62