6 #ifndef KNOWROB_TIME_INTERVAL_H_
7 #define KNOWROB_TIME_INTERVAL_H_
19 class TimeInterval :
public Printable {
67 void write(std::ostream &os)
const override;
70 std::optional<TimePoint>
since_;
71 std::optional<TimePoint>
until_;
std::optional< TimePoint > until_
TimeInterval(const std::optional< TimePoint > &since, const std::optional< TimePoint > &until)
void write(std::ostream &os) const override
static const TimeInterval & anytime()
static TimeInterval during(const TimePoint &begin, const TimePoint &end)
std::optional< TimePoint > since_
static TimeInterval currently()
const auto & since() const
const auto & until() const
bool operator==(const TimeInterval &other) const
std::shared_ptr< TimeInterval > intersectWith(const TimeInterval &other) const
std::chrono::time_point< std::chrono::system_clock, std::chrono::seconds > TimePoint