OGS
TimeInterval.h
Go to the documentation of this file.
1 
13 #pragma once
14 
15 namespace BaseLib
16 {
17 class ConfigTree;
18 
23 struct TimeInterval final
24 {
25 public:
26  bool contains(const double current_time) const
27  {
28  return (current_time >= start_time && current_time <= end_time);
29  }
30 
31  double start_time;
32  double end_time;
33 };
34 
36 
37 } // namespace BaseLib
TimeInterval createTimeInterval(ConfigTree const &config)
bool contains(const double current_time) const
Definition: TimeInterval.h:26