##// END OF EJS Templates
Add thread protection for DataSeries...
Add thread protection for DataSeries Set Y range to varRange instead of graghRange where no data has been computed yet Set cosinus freq to 1htz

File last commit:

r625:d6648352006d
r636:ad1efe843595
Show More
VariableAcquisitionWorker.h
61 lines | 1.8 KiB | text/x-c | CLexer
/ core / include / Variable / VariableAcquisitionWorker.h
Add empty class VariableAcquisitionWorker
r527 #ifndef SCIQLOP_VARIABLEACQUISITIONWORKER_H
#define SCIQLOP_VARIABLEACQUISITIONWORKER_H
#include "CoreGlobal.h"
#include <Data/DataProviderParameters.h>
#include <QLoggingCategory>
#include <QObject>
#include <QUuid>
Implementation of V5 acquisition
r539 #include <Data/AcquisitionDataPacket.h>
#include <Data/IDataSeries.h>
Update worker for SqpRange compatibility
r530 #include <Data/SqpRange.h>
Add empty class VariableAcquisitionWorker
r527
#include <QLoggingCategory>
#include <Common/spimpl.h>
Q_DECLARE_LOGGING_CATEGORY(LOG_VariableAcquisitionWorker)
class Variable;
class IDataProvider;
/// This class aims to handle all acquisition request
class SCIQLOP_CORE_EXPORT VariableAcquisitionWorker : public QObject {
Q_OBJECT
public:
explicit VariableAcquisitionWorker(QObject *parent = 0);
Implementation of V5 acquisition
r539 virtual ~VariableAcquisitionWorker();
Add empty class VariableAcquisitionWorker
r527
push method of worker return the id of the nextRange which is canceled
r625 QUuid pushVariableRequest(QUuid varRequestId, QUuid vIdentifier, SqpRange rangeRequested,
SqpRange cacheRangeRequested, DataProviderParameters parameters,
std::shared_ptr<IDataProvider> provider);
Implementation of V5 acquisition
r539
void abortProgressRequested(QUuid vIdentifier);
void initialize();
void finalize();
signals:
void dataProvided(QUuid vIdentifier, const SqpRange &rangeRequested,
const SqpRange &cacheRangeRequested,
QVector<AcquisitionDataPacket> dataAcquired);
void variableRequestInProgress(QUuid vIdentifier, double progress);
public slots:
void onVariableDataAcquired(QUuid acqIdentifier, std::shared_ptr<IDataSeries> dataSeries,
SqpRange dataRangeAcquired);
void onVariableRetrieveDataInProgress(QUuid acqIdentifier, double progress);
private slots:
void onExecuteRequest(QUuid acqIdentifier);
Add empty class VariableAcquisitionWorker
r527
private:
Implementation of V5 acquisition
r539 void waitForFinish();
Add empty class VariableAcquisitionWorker
r527 class VariableAcquisitionWorkerPrivate;
spimpl::unique_impl_ptr<VariableAcquisitionWorkerPrivate> impl;
};
#endif // SCIQLOP_VARIABLEACQUISITIONWORKER_H