gaze
0.1.0
Perform gaze tracking with common webcams.
Main Page
Related Pages
Namespaces
Classes
Files
File List
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Groups
Pages
src
gaze
util
config.in.cpp
1
#include "gaze/util/config.h"
2
3
#include <
iostream
>
4
5
#include "yaml-cpp/yaml.h"
6
7
8
namespace
gaze {
9
10
namespace
util {
11
12
YAML::Node
get_config
() {
13
YAML::Node config;
14
try
{
15
config = YAML::LoadFile(
"gaze.yaml"
);
16
}
catch
(YAML::BadFile) {
17
config = YAML::Load(
"@DEFAULT_CONFIGURATION_FILE@"
);
18
}
19
return
config;
20
}
21
22
YAML::Node
get_config
(
int
pipeline_step_number) {
23
return
get_config
()[
"pipeline"
][pipeline_step_number];
24
}
25
26
}
// namespace util
27
28
}
// namespace gaze
iostream
gaze::util::get_config
YAML::Node get_config()
Definition:
config.in.cpp:12
Generated by
1.8.6