Computer Assited Medical Intervention Tool Kit  version 3.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ActionExtensionGenerator.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 ACTIONEXTENSIONGENERATOR_H
26 #define ACTIONEXTENSIONGENERATOR_H
27 
28 #if defined(_WIN32) && !defined(__MINGW32__) // MSVC only
29 #pragma warning( disable : 4290 )
30 #endif // MSVC only
31 
32 
33 // local includes
34 #include "ExtensionGenerator.h"
35 
36 namespace cepcoreschema
37 {
38 class ActionExtension;
39 }
40 
41 class ActionGenerator;
42 
51 {
52 
53 public:
54  ActionExtensionGenerator(QString xmlFileName, QString actionExtensionsDirectory, QString licence = "") throw (QString);
55  ActionExtensionGenerator(cepcoreschema::ActionExtension & domActionExtension, QString actionExtensionsDirectory, QString licence="");
56 
58 
59 
60 protected:
62  virtual void generateActionOrComponent(QString directory);
63  virtual void writeCFile(QString directory);
64  virtual void writeHFile(QString directory);
65 
66  virtual void generateTestDataFiles(QString directory, QString testDataDirName);
67 
69 
70 private:
72  void createFromDom(cepcoreschema::ActionExtension & dom);
73 
74  QVector<ActionGenerator *> actions;
75 };
76 
77 #endif
void createFromDom(cepcoreschema::ActionExtension &dom)
Helper method for constructors.
virtual void generateActionOrComponent(QString directory)
Helpers methods.
virtual void writeHFile(QString directory)
TODO Celine comment here please.
Definition: libraries/cepgenerator/ExtensionGenerator.h:49
QVector< ActionGenerator * > actions
Definition: ActionExtensionGenerator.h:74
ActionExtensionGenerator(QString xmlFileName, QString actionExtensionsDirectory, QString licence="")
QString licence
Definition: libraries/cepgenerator/ExtensionGenerator.h:86
virtual void writeCFile(QString directory)
QFileInfo xmlFileName
Definition: applications/wizard-old/ExtensionGenerator.h:80
virtual void generateTestDataFiles(QString directory, QString testDataDirName)
TODO Celine comment here please.
Definition: libraries/cepgenerator/ActionGenerator.h:52
TODO Celine comment here please.
Definition: ActionExtensionGenerator.h:50