CTK  0.1.0
The Common Toolkit is a community effort to provide support code for medical image analysis, surgical navigation, and related projects.
ctkPluginGeneratorCodeModel.h
Go to the documentation of this file.
1 /*=============================================================================
2 
3  Library: CTK
4 
5  Copyright (c) German Cancer Research Center,
6  Division of Medical and Biological Informatics
7 
8  Licensed under the Apache License, Version 2.0 (the "License");
9  you may not use this file except in compliance with the License.
10  You may obtain a copy of the License at
11 
12  http://www.apache.org/licenses/LICENSE-2.0
13 
14  Unless required by applicable law or agreed to in writing, software
15  distributed under the License is distributed on an "AS IS" BASIS,
16  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  See the License for the specific language governing permissions and
18  limitations under the License.
19 
20 =============================================================================*/
21 
22 
23 #ifndef CTKPLUGINGENERATORCODEMODEL_H
24 #define CTKPLUGINGENERATORCODEMODEL_H
25 
26 #include <QObject>
27 #include <QScopedPointer>
28 
30 
31 class ctkPluginGeneratorCodeModelPrivate;
32 
33 class org_commontk_plugingenerator_core_EXPORT ctkPluginGeneratorCodeModel : public QObject
34 {
35  Q_OBJECT
36 
37 public:
38 
40 
42 
43  void addTemplate(ctkPluginGeneratorAbstractTemplate* templ, const QString& path = "");
44 
45  ctkPluginGeneratorAbstractTemplate* getTemplate(const QString& path) const;
46 
47  void addContent(const QString& marker, const QString& content);
48  QString getContent(const QString& marker) const;
49 
50  void setExportMacro(const QString& exportMacro);
51  QString getExportMacro() const;
52 
53  void setExportMacroInclude(const QString& exportMacroInclude);
54  QString getExportMacroInclude() const;
55 
56  void setSymbolicName(const QString& symbolicName);
57  QString getSymbolicName(bool withPeriods = false) const;
58 
59  void setLicense(const QString& license);
60  QString getLicense() const;
61 
62  void create(const QString& location);
63 
64  void reset();
65 
66 private:
67 
68  Q_DECLARE_PRIVATE(ctkPluginGeneratorCodeModel)
69 
70  const QScopedPointer<ctkPluginGeneratorCodeModelPrivate> d_ptr;
71 
72 
73 };
74 
75 #endif // CTKPLUGINGENERATORCODEMODEL_H
void setExportMacroInclude(const QString &exportMacroInclude)
void addTemplate(ctkPluginGeneratorAbstractTemplate *templ, const QString &path="")
void create(const QString &location)
virtual ~ctkPluginGeneratorCodeModel()
QString getLicense() const
QString getSymbolicName(bool withPeriods=false) const
QString getExportMacroInclude() const
QString getExportMacro() const
void setExportMacro(const QString &exportMacro)
QString getContent(const QString &marker) const
void addContent(const QString &marker, const QString &content)
void setLicense(const QString &license)
void setSymbolicName(const QString &symbolicName)
ctkPluginGeneratorAbstractTemplate * getTemplate(const QString &path) const