##// END OF EJS Templates
Added DateTimeRange unit Tests...
Added DateTimeRange unit Tests Added tests: - delta computation test - Shift based on + operator overloading - Zoom based on * operator overloading Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org> Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>

File last commit:

r0:86b06c4cec3c
r6:d9ddd9092db4
Show More
VariableCacheStrategy.h
32 lines | 747 B | text/x-c | CLexer
/ include / Variable / VariableCacheStrategy.h
#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;
virtual std::pair<DateTimeRange, DateTimeRange> computeRange(const DateTimeRange &vRange,
const DateTimeRange &rangeRequested)
= 0;
};
#endif // SCIQLOP_VARIABLECACHESTRATEGY_H