gaze  0.1.0
Perform gaze tracking with common webcams.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Groups Pages
Public Member Functions | List of all members
wpl::Config Class Reference

Holds all configuration options for the experiment. More...

#include "where_people_look/config.h"

Public Member Functions

bool assistant_data_complete () const
 
Getters
const boost::filesystem::path get_stimuli_dir_path () const
 
const std::string get_subject_id () const
 
Setters

Some setters are overloaded to provide easy usage with boost::filesystem::path and std::string.

void set_stimuli_dir_path (const std::string path)
 
void set_stimuli_dir_path (const boost::filesystem::path path)
 
void set_subject_id (const std::string id)
 

Detailed Description

Holds all configuration options for the experiment.

Definition at line 15 of file config.h.

Member Function Documentation

bool wpl::Config::assistant_data_complete ( ) const

Checks if the data fromt the wizard at program start is complete. This function can be used to set the completed flag for the assistant.

Returns
true if all information is provided.

Definition at line 10 of file config.cpp.

References basic_string< char >::empty().

10  {
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 }
bool empty() const noexcept

The documentation for this class was generated from the following files: