gaze  0.1.0
Perform gaze tracking with common webcams.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Groups Pages
config.cpp
1 #include "where_people_look/config.h"
2 
3 #include <string>
4 
5 #include "boost/filesystem.hpp"
6 
7 
8 namespace wpl {
9 
11  boost::filesystem::path initial_path = boost::filesystem::initial_path();
12  if (subject_id.empty()
13  ||stimuli_dir_path == initial_path) {
14  return false;
15  }
16  return true;
17 }
18 
19 const boost::filesystem::path Config::get_stimuli_dir_path() const {
20  return this->stimuli_dir_path;
21 }
22 
23 const std::string Config::get_subject_id() const {
24  return this->subject_id;
25 }
26 
27 void Config::set_stimuli_dir_path(const std::string path) {
28  boost::filesystem::path full_path = boost::filesystem::system_complete(path);
29  this->set_stimuli_dir_path(full_path);
30 }
31 
32 void Config::set_stimuli_dir_path(const boost::filesystem::path path) {
33  boost::filesystem::path full_path = boost::filesystem::system_complete(path);
34  this->stimuli_dir_path = full_path;
35 }
36 
37 void Config::set_subject_id(const std::string id) {
38  this->subject_id = id;
39 }
40 
41 } // namespace wpl
bool assistant_data_complete() const
Definition: config.cpp:10
bool empty() const noexcept