##// END OF EJS Templates
Adds plugin column to variable widget...
Adds plugin column to variable widget To retrieve the "plugin" field, we add to the metadata of the variable the name of the data source root item

File last commit:

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