OGS
TimeInterval.cpp
Go to the documentation of this file.
1
15#include "TimeInterval.h"
16
17#include <memory>
18
19#include "ConfigTree.h"
20
21namespace BaseLib
22{
24{
26 auto const& time_interval_config = config.getConfigSubtree("time_interval");
27
28 const auto start_time =
30 time_interval_config.getConfigParameter<double>("start");
31
32 const auto end_time =
34 time_interval_config.getConfigParameter<double>("end");
35
36 return {start_time, end_time};
37}
38} // namespace BaseLib
T getConfigParameter(std::string const &param) const
ConfigTree getConfigSubtree(std::string const &root) const
TimeInterval createTimeInterval(ConfigTree const &config)