VariableCacheStrategy.h
32 lines
| 732 B
| text/x-c
|
CLexer
r0 | #ifndef SCIQLOP_VARIABLECACHESTRATEGY_H | |||
#define SCIQLOP_VARIABLECACHESTRATEGY_H | ||||
#include "CoreGlobal.h" | ||||
#include <QLoggingCategory> | ||||
#include <QObject> | ||||
#include <Data/DateTimeRange.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. | ||||
class SCIQLOP_CORE_EXPORT VariableCacheStrategy { | ||||
public: | ||||
virtual ~VariableCacheStrategy() noexcept = default; | ||||
r9 | virtual DateTimeRange computeRange(const DateTimeRange ¤tCacheRange, | |||
r0 | const DateTimeRange &rangeRequested) | |||
= 0; | ||||
}; | ||||
#endif // SCIQLOP_VARIABLECACHESTRATEGY_H | ||||