Computer Assited Medical Intervention Tool Kit  version 3.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
applications/wizard-old/ExtensionGenerator.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * $CAMITK_LICENCE_BEGIN$
3  *
4  * CamiTK - Computer Assisted Medical Intervention ToolKit
5  * (c) 2001-2014 UJF-Grenoble 1, CNRS, TIMC-IMAG UMR 5525 (GMCAO)
6  *
7  * Visit http://camitk.imag.fr for more information
8  *
9  * This file is part of CamiTK.
10  *
11  * CamiTK is free software: you can redistribute it and/or modify
12  * it under the terms of the GNU Lesser General Public License version 3
13  * only, as published by the Free Software Foundation.
14  *
15  * CamiTK is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  * GNU Lesser General Public License version 3 for more details.
19  *
20  * You should have received a copy of the GNU Lesser General Public License
21  * version 3 along with CamiTK. If not, see <http://www.gnu.org/licenses/>.
22  *
23  * $CAMITK_LICENCE_END$
24  ****************************************************************************/
25 #ifndef EXTENSIONGENERATOR_H
26 #define EXTENSIONGENERATOR_H
27 
28 #if defined(_WIN32) && !defined(__MINGW32__) // MSVC only
29 #pragma warning( disable : 4290 )
30 #endif // MSVC only
31 
32 
33 // includes from Qt
34 #include <QString>
35 #include <QFileInfo>
36 #include <QDir>
37 
38 // Includes from coreschema
39 #include <Extension.hxx>
40 
41 class ExtensionGenerator {
42 
43 public :
50  };
51 
52  static bool generateExtensionFiles(QString xmlFileName, QString devDirectoryName);
53 
54 
55 protected:
56  ExtensionGenerator(QString xmlFileName, QString devDirectoryName) throw (QString);
57 
58  void setXmlFileName(QString xmlFileName) throw (QString);
59  void setDevDirectoryName(QString devDirectoryName) throw (QString);
60  void createTestDataFiles() throw (QString);
61 
62  void generateCMakeLists() throw (QString);
63  void generateExtensionFiles() throw (QString);
64  void generateInternFilesList() throw (QString);
65  void generateInternFiles() throw (QString);
66 
67  void generateActionExtensionFiles() throw (QString);
68  void generateActionsList() throw (QString);
69  void generateActionFiles() throw (QString);
70 
71  void generateComponentExtensionFiles() throw (QString);
72  void generateComponentsList() throw (QString);
73  void generateComponentFiles() throw (QString);
74 
75  void showReport();
76  void writeReport();
77 
78 
79 
80  QFileInfo xmlFileName;
82  QDir srcDir;
83 
84  std::auto_ptr<coreschema::Extension> theExtension;
85 
87 
88  std::vector<QFileInfo> elementsList;
89  std::vector<QString> generatedClassList;
90 
91 
92 };
93 
94 #endif
void generateActionFiles()
std::vector< QFileInfo > elementsList
Definition: applications/wizard-old/ExtensionGenerator.h:88
Definition: applications/wizard-old/ExtensionGenerator.h:45
ExtensionGenerator(QString actionExtensionsDirectory, QString licence="", QString extensionType="NONE")
ExtensionType
Definition: applications/wizard-old/ExtensionGenerator.h:44
void generateComponentExtensionFiles()
void generateExtensionFiles()
void generateInternFiles()
Definition: applications/wizard-old/ExtensionGenerator.h:49
STL namespace.
void generateActionsList()
void createTestDataFiles()
QDir srcDir
Definition: applications/wizard-old/ExtensionGenerator.h:82
void generateComponentFiles()
TODO Celine comment here please.
Definition: libraries/cepgenerator/ExtensionGenerator.h:49
void generateComponentsList()
std::vector< QString > generatedClassList
Definition: applications/wizard-old/ExtensionGenerator.h:89
Definition: applications/wizard-old/ExtensionGenerator.h:46
QDir devDirectoryName
Definition: applications/wizard-old/ExtensionGenerator.h:81
QFileInfo xmlFileName
Definition: applications/wizard-old/ExtensionGenerator.h:80
ExtensionType type
Definition: applications/wizard-old/ExtensionGenerator.h:86
void generateActionExtensionFiles()
void setDevDirectoryName(QString devDirectoryName)
std::auto_ptr< coreschema::Extension > theExtension
Definition: applications/wizard-old/ExtensionGenerator.h:84
void generateInternFilesList()
Definition: applications/wizard-old/ExtensionGenerator.h:48
void setXmlFileName(QString xmlFileName)
Definition: applications/wizard-old/ExtensionGenerator.h:47