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
35
TimeInterval
createTimeInterval
(
ConfigTree
const
& config);
36
37
}
// namespace BaseLib
BaseLib::ConfigTree
Definition
ConfigTree.h:107
BaseLib
Definition
TestDefinition.h:21
BaseLib::createTimeInterval
TimeInterval createTimeInterval(ConfigTree const &config)
Definition
TimeInterval.cpp:23
BaseLib::TimeInterval
Definition
TimeInterval.h:24
BaseLib::TimeInterval::end_time
double end_time
Definition
TimeInterval.h:32
BaseLib::TimeInterval::start_time
double start_time
Definition
TimeInterval.h:31
BaseLib::TimeInterval::contains
bool contains(const double current_time) const
Definition
TimeInterval.h:26
BaseLib
TimeInterval.h
Generated by
1.10.0