C++ Web Framework  3.0
cstlcompilerif.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 CSTLCOMPILERIF_H
9 #define CSTLCOMPILERIF_H
10 
11 #include <QMap>
12 #include <QXmlStreamAttributes>
13 #include "cppwebframework_global.h"
14 
15 CWF_BEGIN_NAMESPACE
16 
17 enum class RelationalOperator : char
18 {
19  EQUAL,
20  DIFFERENT,
21  GREATER,
22  GREATER_EQUAL,
23  LESS,
24  LESS_EQUAL,
25  ERROR
26 };
30 class CPPWEBFRAMEWORKSHARED_EXPORT CSTLCompilerIf
31 {
32 public:
33  RelationalOperator relationalOperator;
34  bool isNumber = false;
35  QMap<QString, QString> attributes;
40  explicit CSTLCompilerIf(const QXmlStreamAttributes &attr);
41 };
42 
43 CWF_END_NAMESPACE
44 
45 
46 #endif // CSTLCOMPILERIF_H
Extracts and valites all attibutes from a "if" tag.
Definition: cstlcompilerif.h:30