@@ -0,0 +1,25 | |||||
|
1 | #ifndef SCIQLOP_ACQUISITIONDATAPACKET_H | |||
|
2 | #define SCIQLOP_ACQUISITIONDATAPACKET_H | |||
|
3 | ||||
|
4 | #include <QObject> | |||
|
5 | ||||
|
6 | #include <Common/DateUtils.h> | |||
|
7 | #include <Common/MetaTypes.h> | |||
|
8 | #include <Data/IDataSeries.h> | |||
|
9 | #include <Data/SqpRange.h> | |||
|
10 | ||||
|
11 | #include <memory> | |||
|
12 | ||||
|
13 | /** | |||
|
14 | * @brief The AcquisitionDataPacket struct holds the information of an acquisition request result | |||
|
15 | * part. | |||
|
16 | */ | |||
|
17 | struct AcquisitionDataPacket { | |||
|
18 | std::shared_ptr<IDataSeries> m_DateSeries; | |||
|
19 | SqpRange m_Range; | |||
|
20 | }; | |||
|
21 | ||||
|
22 | SCIQLOP_REGISTER_META_TYPE(ACQUISITIONDATAPACKET_REGISTRY, AcquisitionDataPacket) | |||
|
23 | SCIQLOP_REGISTER_META_TYPE(ACQUISITIONDATAPACKETVECTOR_REGISTRY, QVector<AcquisitionDataPacket>) | |||
|
24 | ||||
|
25 | #endif // SCIQLOP_ACQUISITIONREQUEST_H |
@@ -0,0 +1,38 | |||||
|
1 | #ifndef SCIQLOP_ACQUISITIONREQUEST_H | |||
|
2 | #define SCIQLOP_ACQUISITIONREQUEST_H | |||
|
3 | ||||
|
4 | #include <QObject> | |||
|
5 | ||||
|
6 | #include <QUuid> | |||
|
7 | ||||
|
8 | #include <Common/DateUtils.h> | |||
|
9 | #include <Common/MetaTypes.h> | |||
|
10 | #include <Data/DataProviderParameters.h> | |||
|
11 | #include <Data/IDataProvider.h> | |||
|
12 | #include <Data/SqpRange.h> | |||
|
13 | ||||
|
14 | #include <memory> | |||
|
15 | ||||
|
16 | /** | |||
|
17 | * @brief The AcquisitionRequest struct holds the information of an acquisition request | |||
|
18 | */ | |||
|
19 | struct AcquisitionRequest { | |||
|
20 | AcquisitionRequest() | |||
|
21 | { | |||
|
22 | ||||
|
23 | m_AcqIdentifier = QUuid::createUuid(); | |||
|
24 | m_Size = 0; | |||
|
25 | } | |||
|
26 | ||||
|
27 | QUuid m_AcqIdentifier; | |||
|
28 | QUuid m_vIdentifier; | |||
|
29 | DataProviderParameters m_DataProviderParameters; | |||
|
30 | SqpRange m_RangeRequested; | |||
|
31 | SqpRange m_CacheRangeRequested; | |||
|
32 | int m_Size; | |||
|
33 | std::shared_ptr<IDataProvider> m_Provider; | |||
|
34 | }; | |||
|
35 | ||||
|
36 | SCIQLOP_REGISTER_META_TYPE(ACQUISITIONREQUEST_REGISTRY, AcquisitionRequest) | |||
|
37 | ||||
|
38 | #endif // SCIQLOP_ACQUISITIONREQUEST_H |
General Comments 0
You need to be logged in to leave comments.
Login now