C++ Web Framework  3.0
cstlcompilerobject.h
1 /*
2  Copyright 2017 Herik Lima de Castro and Marcelo Medeiros Eler
3  Distributed under MIT license, or public domain if desired and
4  recognized in your jurisdiction.
5  See file LICENSE for detail.
6 */
7 
8 #ifndef CSTLCOMPILEROBJECT_H
9 #define CSTLCOMPILEROBJECT_H
10 
11 #include <QObject>
12 #include "cppwebframework_global.h"
13 
14 CWF_BEGIN_NAMESPACE
18 class CPPWEBFRAMEWORKSHARED_EXPORT CSTLCompilerObject : public QObject
19 {
20  Q_OBJECT
21 private:
22  QString value;
23  QString type;
24 public:
29  explicit CSTLCompilerObject(QObject *parent = nullptr) : QObject(parent) {}
30 public slots:
35  inline QString getValue() const noexcept { return value; }
40  inline void setValue(const QString &value) noexcept { this->value = value; }
45  inline QString getType() const noexcept { return type; }
50  inline void setType(const QString &value) noexcept { type = value; }
51 };
52 
53 CWF_END_NAMESPACE
54 
55 #endif // CSTLCOMPILEROBJECT_H
void setType(const QString &value) noexcept
Sets the type.
Definition: cstlcompilerobject.h:50
QString getType() const noexcept
Returns the type.
Definition: cstlcompilerobject.h:45
CSTLCompilerObject(QObject *parent=nullptr)
This constructor can set the CSTLCompilerObject&#39;s parent.
Definition: cstlcompilerobject.h:29
QString getValue() const noexcept
Returns the value.
Definition: cstlcompilerobject.h:35
The Properties class is an auxiliar class to the CSTLCompiler.
Definition: cstlcompilerobject.h:18
void setValue(const QString &value) noexcept
Sets the value.
Definition: cstlcompilerobject.h:40