@@ -1,41 +1,57 | |||
|
1 | 1 | #ifndef SCIQLOP_FUZZINGDEFS_H |
|
2 | 2 | #define SCIQLOP_FUZZINGDEFS_H |
|
3 | 3 | |
|
4 | #include <Data/SqpRange.h> | |
|
5 | ||
|
4 | 6 | #include <QString> |
|
5 | 7 | #include <QVariantHash> |
|
6 | 8 | |
|
9 | #include <memory> | |
|
10 | ||
|
7 | 11 | // /////// // |
|
8 | 12 | // Aliases // |
|
9 | 13 | // /////// // |
|
10 | 14 | |
|
11 | 15 | using MetadataPool = std::vector<QVariantHash>; |
|
12 | 16 | Q_DECLARE_METATYPE(MetadataPool) |
|
13 | 17 | |
|
14 | 18 | using Properties = QVariantHash; |
|
15 | 19 | |
|
16 | 20 | // ///////// // |
|
17 | 21 | // Constants // |
|
18 | 22 | // ///////// // |
|
19 | 23 | |
|
20 | 24 | /// Max number of operations to generate |
|
21 | 25 | extern const QString NB_MAX_OPERATIONS_PROPERTY; |
|
22 | 26 | |
|
23 | 27 | /// Max number of variables to manipulate through operations |
|
24 | 28 | extern const QString NB_MAX_VARIABLES_PROPERTY; |
|
25 | 29 | |
|
26 | 30 | /// Set of operations available for the test |
|
27 | 31 | extern const QString AVAILABLE_OPERATIONS_PROPERTY; |
|
28 | 32 | |
|
29 | 33 | /// Max range that an operation can reach |
|
30 | 34 | extern const QString MAX_RANGE_PROPERTY; |
|
31 | 35 | |
|
32 | 36 | /// Set of metadata that can be associated to a variable |
|
33 | 37 | extern const QString METADATA_POOL_PROPERTY; |
|
34 | 38 | |
|
35 | 39 | /// Provider used to retrieve data |
|
36 | 40 | extern const QString PROVIDER_PROPERTY; |
|
37 | 41 | |
|
38 | 42 | /// Time left for an operation to execute |
|
39 | 43 | extern const QString OPERATION_DELAY_PROPERTY; |
|
40 | 44 | |
|
45 | ||
|
46 | // /////// // | |
|
47 | // Structs // | |
|
48 | // /////// // | |
|
49 | ||
|
50 | class Variable; | |
|
51 | ||
|
52 | struct VariableState { | |
|
53 | std::shared_ptr<Variable> m_Variable{nullptr}; | |
|
54 | SqpRange m_Range{INVALID_RANGE}; | |
|
55 | }; | |
|
56 | ||
|
41 | 57 | #endif // SCIQLOP_FUZZINGDEFS_H |
General Comments 0
You need to be logged in to leave comments.
Login now