Auto status change to "Under Review"
@@ -0,0 +1,36 | |||
|
1 | #ifndef SCIQLOP_VARIABLEACQUISITIONWORKER_H | |
|
2 | #define SCIQLOP_VARIABLEACQUISITIONWORKER_H | |
|
3 | ||
|
4 | #include "CoreGlobal.h" | |
|
5 | ||
|
6 | #include <Data/DataProviderParameters.h> | |
|
7 | #include <QLoggingCategory> | |
|
8 | #include <QObject> | |
|
9 | #include <QUuid> | |
|
10 | ||
|
11 | #include <Data/SqpDateTime.h> | |
|
12 | ||
|
13 | #include <QLoggingCategory> | |
|
14 | ||
|
15 | #include <Common/spimpl.h> | |
|
16 | ||
|
17 | Q_DECLARE_LOGGING_CATEGORY(LOG_VariableAcquisitionWorker) | |
|
18 | ||
|
19 | class Variable; | |
|
20 | class IDataProvider; | |
|
21 | ||
|
22 | /// This class aims to handle all acquisition request | |
|
23 | class SCIQLOP_CORE_EXPORT VariableAcquisitionWorker : public QObject { | |
|
24 | Q_OBJECT | |
|
25 | public: | |
|
26 | explicit VariableAcquisitionWorker(QObject *parent = 0); | |
|
27 | ||
|
28 | void pushVariableRequest(QUuid vIdentifier, SqpRange rangeRequest, SqpRange cacheRangeRequested, | |
|
29 | DataProviderParameters parameters, IDataProvider *provider); | |
|
30 | ||
|
31 | private: | |
|
32 | class VariableAcquisitionWorkerPrivate; | |
|
33 | spimpl::unique_impl_ptr<VariableAcquisitionWorkerPrivate> impl; | |
|
34 | }; | |
|
35 | ||
|
36 | #endif // SCIQLOP_VARIABLEACQUISITIONWORKER_H |
@@ -0,0 +1,26 | |||
|
1 | #include "Variable/VariableAcquisitionWorker.h" | |
|
2 | ||
|
3 | #include "Variable/Variable.h" | |
|
4 | #include <unordered_map> | |
|
5 | ||
|
6 | #include <QThread> | |
|
7 | Q_LOGGING_CATEGORY(LOG_VariableAcquisitionWorker, "VariableAcquisitionWorker") | |
|
8 | ||
|
9 | struct VariableAcquisitionWorker::VariableAcquisitionWorkerPrivate { | |
|
10 | ||
|
11 | std::unordered_map<std::shared_ptr<Variable>, QVector<SqpDateTime> > | |
|
12 | m_VariableToSqpDateTimeListMap; | |
|
13 | }; | |
|
14 | ||
|
15 | ||
|
16 | VariableAcquisitionWorker::VariableAcquisitionWorker(QObject *parent) | |
|
17 | : QObject{parent}, impl{spimpl::make_unique_impl<VariableAcquisitionWorkerPrivate>()} | |
|
18 | { | |
|
19 | } | |
|
20 | ||
|
21 | void VariableAcquisitionWorker::pushVariableRequest(QUuid vIdentifier, SqpRange rangeRequest, | |
|
22 | SqpRange cacheRangeRequested, | |
|
23 | DataProviderParameters parameters, | |
|
24 | IDataProvider *provider) | |
|
25 | { | |
|
26 | } |
General Comments 1
You need to be logged in to leave comments.
Login now