From f50da583f835e3d07eedbd6259526e9a8006ff9a 2017-08-14 12:52:48 From: mperrinel Date: 2017-08-14 12:52:48 Subject: [PATCH] Add AcquisitionDataPacket --- diff --git a/core/include/Data/AcquisitionDataPacket.h b/core/include/Data/AcquisitionDataPacket.h new file mode 100644 index 0000000..3e02ba6 --- /dev/null +++ b/core/include/Data/AcquisitionDataPacket.h @@ -0,0 +1,25 @@ +#ifndef SCIQLOP_ACQUISITIONDATAPACKET_H +#define SCIQLOP_ACQUISITIONDATAPACKET_H + +#include + +#include +#include +#include +#include + +#include + +/** + * @brief The AcquisitionDataPacket struct holds the information of an acquisition request result + * part. + */ +struct AcquisitionDataPacket { + std::shared_ptr m_DateSeries; + SqpRange m_Range; +}; + +SCIQLOP_REGISTER_META_TYPE(ACQUISITIONDATAPACKET_REGISTRY, AcquisitionDataPacket) +SCIQLOP_REGISTER_META_TYPE(ACQUISITIONDATAPACKETVECTOR_REGISTRY, QVector) + +#endif // SCIQLOP_ACQUISITIONREQUEST_H diff --git a/core/include/Data/AcquisitionRequest.h b/core/include/Data/AcquisitionRequest.h new file mode 100644 index 0000000..f1cc89d --- /dev/null +++ b/core/include/Data/AcquisitionRequest.h @@ -0,0 +1,38 @@ +#ifndef SCIQLOP_ACQUISITIONREQUEST_H +#define SCIQLOP_ACQUISITIONREQUEST_H + +#include + +#include + +#include +#include +#include +#include +#include + +#include + +/** + * @brief The AcquisitionRequest struct holds the information of an acquisition request + */ +struct AcquisitionRequest { + AcquisitionRequest() + { + + m_AcqIdentifier = QUuid::createUuid(); + m_Size = 0; + } + + QUuid m_AcqIdentifier; + QUuid m_vIdentifier; + DataProviderParameters m_DataProviderParameters; + SqpRange m_RangeRequested; + SqpRange m_CacheRangeRequested; + int m_Size; + std::shared_ptr m_Provider; +}; + +SCIQLOP_REGISTER_META_TYPE(ACQUISITIONREQUEST_REGISTRY, AcquisitionRequest) + +#endif // SCIQLOP_ACQUISITIONREQUEST_H