OGS
TimeInterval.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) OpenGeoSys Community (opengeosys.org)
2// SPDX-License-Identifier: BSD-3-Clause
3
4#pragma once
5
6namespace BaseLib
7{
8class ConfigTree;
9
14struct TimeInterval final
15{
16public:
17 bool contains(const double current_time) const
18 {
19 return (current_time >= start_time && current_time <= end_time);
20 }
21
22 double start_time;
23 double end_time;
24};
25
27
28} // namespace BaseLib
TimeInterval createTimeInterval(ConfigTree const &config)
bool contains(const double current_time) const