2016-03-15 21:52:31 +00:00
|
|
|
#pragma once
|
|
|
|
|
2016-03-28 18:25:11 +00:00
|
|
|
#include <TimeRange.h>
|
2016-03-15 21:52:31 +00:00
|
|
|
|
|
|
|
template<typename TValue>
|
2016-03-28 18:25:11 +00:00
|
|
|
class Timed : public TimeRange {
|
2016-03-15 21:52:31 +00:00
|
|
|
public:
|
|
|
|
Timed(centiseconds start, centiseconds end, TValue value) :
|
2016-03-28 18:25:11 +00:00
|
|
|
TimeRange(start, end),
|
2016-03-15 21:52:31 +00:00
|
|
|
value(value)
|
|
|
|
{}
|
|
|
|
|
|
|
|
const TValue& getValue() const {
|
|
|
|
return value;
|
|
|
|
}
|
|
|
|
|
|
|
|
private:
|
|
|
|
const TValue value;
|
|
|
|
};
|