VariableCacheStrategy.h
32 lines
| 722 B
| text/x-c
|
CLexer
r531 | #ifndef SCIQLOP_VARIABLECACHESTRATEGY_H | |||
#define SCIQLOP_VARIABLECACHESTRATEGY_H | ||||
#include "CoreGlobal.h" | ||||
#include <QLoggingCategory> | ||||
#include <QObject> | ||||
#include <Data/SqpRange.h> | ||||
#include <QLoggingCategory> | ||||
#include <Common/spimpl.h> | ||||
#include <utility> | ||||
Q_DECLARE_LOGGING_CATEGORY(LOG_VariableCacheStrategy) | ||||
class Variable; | ||||
/// This class aims to hande the cache strategy. | ||||
Alexandre Leroux
|
r771 | class SCIQLOP_CORE_EXPORT VariableCacheStrategy { | ||
r531 | ||||
Alexandre Leroux
|
r771 | public: | ||
Alexandre Leroux
|
r961 | virtual ~VariableCacheStrategy() noexcept = default; | ||
Alexandre Leroux
|
r771 | virtual std::pair<SqpRange, SqpRange> computeRange(const SqpRange &vRange, | ||
const SqpRange &rangeRequested) | ||||
= 0; | ||||
r531 | }; | |||
Alexandre Leroux
|
r771 | |||
r531 | #endif // SCIQLOP_VARIABLECACHESTRATEGY_H | |||