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