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
ctkPluginGeneratorCodeModel::getContent
QString getContent(const QString &marker) const
ctkPluginGeneratorCodeModel::getExportMacro
QString getExportMacro() const
ctkPluginGeneratorCodeModel::setSymbolicName
void setSymbolicName(const QString &symbolicName)
ctkPluginGeneratorCodeModel::getSymbolicName
QString getSymbolicName(bool withPeriods=false) const
ctkPluginGeneratorCodeModel::~ctkPluginGeneratorCodeModel
virtual ~ctkPluginGeneratorCodeModel()
ctkPluginGeneratorCodeModel::create
void create(const QString &location)
ctkPluginGeneratorCodeModel::setLicense
void setLicense(const QString &license)
ctkPluginGeneratorCodeModel::addTemplate
void addTemplate(ctkPluginGeneratorAbstractTemplate *templ, const QString &path="")
ctkPluginGeneratorCodeModel
Definition: ctkPluginGeneratorCodeModel.h:34
ctkPluginGeneratorCodeModel::setExportMacro
void setExportMacro(const QString &exportMacro)
ctkPluginGeneratorCodeModel::addContent
void addContent(const QString &marker, const QString &content)
ctkPluginGeneratorAbstractTemplate
Definition: ctkPluginGeneratorAbstractTemplate.h:36
ctkPluginGeneratorCodeModel::setExportMacroInclude
void setExportMacroInclude(const QString &exportMacroInclude)
ctkPluginGeneratorCodeModel::getExportMacroInclude
QString getExportMacroInclude() const
ctkPluginGeneratorCodeModel::ctkPluginGeneratorCodeModel
ctkPluginGeneratorCodeModel()
ctkPluginGeneratorAbstractTemplate.h
ctkPluginGeneratorCodeModel::getLicense
QString getLicense() const
ctkPluginGeneratorCodeModel::reset
void reset()
ctkPluginGeneratorCodeModel::getTemplate
ctkPluginGeneratorAbstractTemplate * getTemplate(const QString &path) const