##// END OF EJS Templates
Changes structure of data hold by the item...
Changes structure of data hold by the item - The data are now set as a QHash instead of a QVector. Each data has a QVariant value and is associated to a key - Changes the constructor and adds a constructor that takes only a name

File last commit:

r310:9a5cb57f1573
r342:2fbf66a7ca8a
Show More
CosinusProvider.h
26 lines | 698 B | text/x-c | CLexer
#ifndef SCIQLOP_COSINUSPROVIDER_H
#define SCIQLOP_COSINUSPROVIDER_H
#include <Data/IDataProvider.h>
#include <QLoggingCategory>
Q_DECLARE_LOGGING_CATEGORY(LOG_CosinusProvider)
/**
* @brief The CosinusProvider class is an example of how a data provider can generate data
*/
class CosinusProvider : public IDataProvider {
public:
/// @sa IDataProvider::retrieveData()
std::shared_ptr<IDataSeries>
retrieveData(const DataProviderParameters &parameters) const override;
void requestDataLoading(const QVector<SqpDateTime> &dateTimeList) override;
private:
std::shared_ptr<IDataSeries> retrieveDataSeries(const SqpDateTime &dateTime);
};
#endif // SCIQLOP_COSINUSPROVIDER_H