Computer Assited Medical Intervention Tool Kit  version 3.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
libraries/cepgenerator/ComponentGenerator.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 COMPONENTGENERATOR_H
26 #define COMPONENTGENERATOR_H
27 
28 #if defined(_WIN32) && !defined(__MINGW32__) // MSVC only
29 #pragma warning( disable : 4290 )
30 #endif // MSVC only
31 
32 // includes from STL
33 #include <set>
34 // includes from Qt
35 #include <QString>
36 #include <QVector>
37 #include <QStringList>
38 
39 namespace cepcoreschema
40 {
41  class Component;
42 }
43 
44 class ParameterGenerator;
45 
46 
55 {
56 
57 public:
58  ComponentGenerator(QString xmlFileName, QString licence) throw (QString);
59  ComponentGenerator(cepcoreschema::Component & domComponent, QString licence);
60 
62 
63  void generateFiles(QString directoryName);
64 
65  QString getClassName() const;
66 
67  QStringList getSuffixesList();
68 
69 private:
72 
73  void writeHFile(QString directoryName);
74  void writeCFile(QString directoryName);
75 
76  QString getParentClassName();
77 
79  QString name;
80 
81  QString description;
82 
83  QString className;
84 
85  QString representation;
86 
87  QString licence;
88 
89  QVector<ParameterGenerator *> componentProperties;
90 
91  QStringList suffixesList;
92 
93 };
94 
95 #endif
ComponentGenerator(QString xmlFileName, QString licence)
QString representation
Definition: libraries/cepgenerator/ComponentGenerator.h:85
virtual void writeHFile()
Definition: ExtensionWindow.h:41
TODO Celine comment here please.
Definition: libraries/cepgenerator/ComponentGenerator.h:54
QStringList getSuffixesList()
QString getParentClassName()
QString className
Name of the created Component class redundant information already contained in theAction, for practicle purpose.
Definition: libraries/cepgenerator/ComponentGenerator.h:83
QString name
Name of the action.
Definition: libraries/cepgenerator/ComponentGenerator.h:79
virtual void writeCFile()
QString description
Definition: libraries/cepgenerator/ComponentGenerator.h:81
QVector< ParameterGenerator * > componentProperties
Definition: libraries/cepgenerator/ComponentGenerator.h:89
A component is something that composed something and could also be a part of something.
Definition: modeling/libraries/pml/Component.h:48
QStringList suffixesList
Definition: libraries/cepgenerator/ComponentGenerator.h:91
QString licence
Definition: libraries/cepgenerator/ComponentGenerator.h:87
void createFromDom(cepcoreschema::Component &dom)
Helper methods for constructors.
QFileInfo xmlFileName
Where to find the XML description of the Action.
Definition: applications/wizard-old/ComponentGenerator.h:73
TODO Celine comment here pl.
Definition: ParameterGenerator.h:49
QString getClassName() const
void generateFiles(QString directoryName)