Loading [MathJax]/extensions/tex2jax.js
OGS
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
v
w
Typedefs
b
c
e
f
h
j
k
l
m
n
p
q
r
s
t
v
w
x
Enumerations
b
c
d
e
f
g
i
l
m
n
o
p
s
t
u
v
Enumerator
a
b
c
d
e
f
g
h
l
m
n
p
r
s
t
v
y
Classes
Class List
Class Index
Class Hierarchy
Files
File List
File Members
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
v
w
x
Functions
a
c
d
e
f
g
i
m
o
p
r
s
t
v
w
x
Variables
Typedefs
Enumerations
Macros
a
b
c
e
g
h
i
l
m
n
o
p
r
s
t
v
w
x
TimeInterval.cpp
Go to the documentation of this file.
1
15
#include "
TimeInterval.h
"
16
17
#include "
ConfigTree.h
"
18
19
namespace
BaseLib
20
{
21
TimeInterval
createTimeInterval
(
ConfigTree
const
& config)
22
{
24
auto
const
& time_interval_config = config.
getConfigSubtree
(
"time_interval"
);
25
26
const
auto
start_time =
28
time_interval_config.
getConfigParameter
<
double
>(
"start"
);
29
30
const
auto
end_time =
32
time_interval_config.getConfigParameter<
double
>(
"end"
);
33
34
return
{start_time, end_time};
35
}
36
}
// namespace BaseLib
ConfigTree.h
TimeInterval.h
BaseLib::ConfigTree
Definition:
ConfigTree.h:103
BaseLib::ConfigTree::getConfigParameter
T getConfigParameter(std::string const ¶m) const
Definition:
ConfigTree-impl.h:39
BaseLib::ConfigTree::getConfigSubtree
ConfigTree getConfigSubtree(std::string const &root) const
Definition:
ConfigTree.cpp:146
BaseLib
Definition:
TestDefinition.h:19
BaseLib::createTimeInterval
TimeInterval createTimeInterval(ConfigTree const &config)
Definition:
TimeInterval.cpp:21
BaseLib::TimeInterval
Definition:
TimeInterval.h:24
BaseLib
TimeInterval.cpp
Generated by
1.9.1