##// END OF EJS Templates
Added core wrapper meson build def...
Added core wrapper meson build def Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>

File last commit:

r67:a8a4e48c21af
r80:0c2e5a797af5
Show More
IDataProvider.h
51 lines | 1.5 KiB | text/x-c | CLexer
First init from SciQLop Core module...
r0 #ifndef SCIQLOP_IDATAPROVIDER_H
#define SCIQLOP_IDATAPROVIDER_H
#include "CoreGlobal.h"
#include <Common/MetaTypes.h>
Added new TS classes and tiny cleanup...
r60 #include <Common/deprecate.h>
First init from SciQLop Core module...
r0 #include <Data/DateTimeRange.h>
Added new TS classes and tiny cleanup...
r60 #include <QObject>
#include <QUuid>
Switched to new TS impl, but quite broken!...
r67 #include <TimeSeries.h>
First init from SciQLop Core module...
r0 #include <functional>
Added new TS classes and tiny cleanup...
r60 #include <memory>
First init from SciQLop Core module...
r0
class DataProviderParameters;
class IDataSeries;
Added new TS classes and tiny cleanup...
r60 DEPRECATE(class QNetworkReply; class QNetworkRequest;)
First init from SciQLop Core module...
r0
/**
* @brief The IDataProvider interface aims to declare a data provider.
*
Added new TS classes and tiny cleanup...
r60 * A data provider is an entity that generates data and returns it according to
* various parameters (time interval, product to retrieve the data, etc.) Since
* its client mihgt use it from different threads it has to be either stateless
* and/or thread safe
First init from SciQLop Core module...
r0 *
* @sa IDataSeries
*/
Added new TS classes and tiny cleanup...
r60 class SCIQLOP_CORE_EXPORT IDataProvider : public QObject
{
Q_OBJECT
First init from SciQLop Core module...
r0 public:
Added new TS classes and tiny cleanup...
r60 virtual ~IDataProvider() noexcept = default;
virtual std::shared_ptr<IDataProvider> clone() const = 0;
First init from SciQLop Core module...
r0
Added new TS classes and tiny cleanup...
r60 // Synchronous call -> asyncGetData may be written for asynchronous get
Switched to new TS impl, but quite broken!...
r67 virtual TimeSeries::ITimeSerie*
getData(const DataProviderParameters& parameters) = 0;
First init from SciQLop Core module...
r0
signals:
Added new TS classes and tiny cleanup...
r60 void progress(QUuid requestID, double progress);
First init from SciQLop Core module...
r0 };
// Required for using shared_ptr in signals/slots
Added new TS classes and tiny cleanup...
r60 SCIQLOP_REGISTER_META_TYPE(IDATAPROVIDER_PTR_REGISTRY,
std::shared_ptr<IDataProvider>)
First init from SciQLop Core module...
r0 SCIQLOP_REGISTER_META_TYPE(IDATAPROVIDER_FUNCTION_REGISTRY,
Added new TS classes and tiny cleanup...
r60 std::function<void(QNetworkReply*, QUuid)>)
First init from SciQLop Core module...
r0
#endif // SCIQLOP_IDATAPROVIDER_H