##// END OF EJS Templates
Parser refactoring (1)...
Parser refactoring (1) Creates a helper that will be used to read the properties and values of an AMDA file, to generate the dataset. The helper is intended to replace the current implementation of the parser, to be more generic and thus manage the spectrograms more easily

File last commit:

r752:22c6ca1df132
r944:e1494a5194f1
Show More
AmdaProvider.h
44 lines | 1.2 KiB | text/x-c | CLexer
#ifndef SCIQLOP_AMDAPROVIDER_H
#define SCIQLOP_AMDAPROVIDER_H
#include "AmdaGlobal.h"
#include <Data/IDataProvider.h>
#include <QLoggingCategory>
#include <map>
Q_DECLARE_LOGGING_CATEGORY(LOG_AmdaProvider)
class QNetworkReply;
class QNetworkRequest;
/**
* @brief The AmdaProvider class is an example of how a data provider can generate data
*/
class SCIQLOP_AMDA_EXPORT AmdaProvider : public IDataProvider {
Q_OBJECT
public:
explicit AmdaProvider();
std::shared_ptr<IDataProvider> clone() const override;
void requestDataLoading(QUuid acqIdentifier, const DataProviderParameters &parameters) override;
void requestDataAborting(QUuid acqIdentifier) override;
private slots:
void onReplyDownloadProgress(QUuid acqIdentifier,
std::shared_ptr<QNetworkRequest> networkRequest, double progress);
private:
void retrieveData(QUuid token, const SqpRange &dateTime, const QVariantHash &data);
void updateRequestProgress(QUuid acqIdentifier, std::shared_ptr<QNetworkRequest> request,
double progress);
std::map<QUuid, std::map<std::shared_ptr<QNetworkRequest>, double> >
m_AcqIdToRequestProgressMap;
};
#endif // SCIQLOP_AMDAPROVIDER_H