##// END OF EJS Templates
Fixed tests due to async var creation, plus minor stuff...
Fixed tests due to async var creation, plus minor stuff A variable is created synchronously but its data is get in background so tests have now to wait until the variable is ready before checking its state. VC should have a [] operator, it's a model feature. The new data provider interface implies that each call only ask for one range, this has been reflected in its parameters. Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>

File last commit:

r0:86b06c4cec3c
r30:02d2d8643fcb
Show More
AcquisitionRequest.h
40 lines | 965 B | text/x-c | CLexer
#ifndef SCIQLOP_ACQUISITIONREQUEST_H
#define SCIQLOP_ACQUISITIONREQUEST_H
#include <QObject>
#include <QUuid>
#include <Common/DateUtils.h>
#include <Common/MetaTypes.h>
#include <Data/DataProviderParameters.h>
#include <Data/IDataProvider.h>
#include <Data/DateTimeRange.h>
#include <memory>
/**
* @brief The AcquisitionRequest struct holds the information of an variable request
*/
struct AcquisitionRequest {
AcquisitionRequest()
{
m_AcqIdentifier = QUuid::createUuid();
m_Size = 0;
m_Progression = 0;
}
QUuid m_VarRequestId;
QUuid m_AcqIdentifier;
QUuid m_vIdentifier;
DataProviderParameters m_DataProviderParameters;
DateTimeRange m_RangeRequested;
DateTimeRange m_CacheRangeRequested;
int m_Size;
int m_Progression;
std::shared_ptr<IDataProvider> m_Provider;
};
SCIQLOP_REGISTER_META_TYPE(ACQUISITIONREQUEST_REGISTRY, AcquisitionRequest)
#endif // SCIQLOP_ACQUISITIONREQUEST_H