CosinusProvider.h
34 lines
| 1012 B
| text/x-c
|
CLexer
Alexandre Leroux
|
r128 | #ifndef SCIQLOP_COSINUSPROVIDER_H | ||
#define SCIQLOP_COSINUSPROVIDER_H | ||||
Alexandre Leroux
|
r351 | #include "MockPluginGlobal.h" | ||
Alexandre Leroux
|
r128 | #include <Data/IDataProvider.h> | ||
r231 | #include <QLoggingCategory> | |||
r428 | #include <QUuid> | |||
r231 | ||||
r428 | #include <QHash> | |||
r231 | Q_DECLARE_LOGGING_CATEGORY(LOG_CosinusProvider) | |||
Alexandre Leroux
|
r128 | /** | ||
* @brief The CosinusProvider class is an example of how a data provider can generate data | ||||
*/ | ||||
Alexandre Leroux
|
r351 | class SCIQLOP_MOCKPLUGIN_EXPORT CosinusProvider : public IDataProvider { | ||
Alexandre Leroux
|
r128 | public: | ||
r428 | /// @sa IDataProvider::requestDataLoading(). The current impl isn't thread safe. | |||
r539 | void requestDataLoading(QUuid acqIdentifier, const DataProviderParameters ¶meters) override; | |||
r231 | ||||
r428 | /// @sa IDataProvider::requestDataAborting(). The current impl isn't thread safe. | |||
r539 | void requestDataAborting(QUuid acqIdentifier) override; | |||
r422 | ||||
r231 | private: | |||
r539 | std::shared_ptr<IDataSeries> retrieveData(QUuid acqIdentifier, | |||
const SqpRange &dataRangeRequested); | ||||
r428 | ||||
QHash<QUuid, bool> m_VariableToEnableProvider; | ||||
Alexandre Leroux
|
r128 | }; | ||
#endif // SCIQLOP_COSINUSPROVIDER_H | ||||