-
Notifications
You must be signed in to change notification settings - Fork 3
/
RunnerConfig.h
44 lines (31 loc) · 849 Bytes
/
RunnerConfig.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//
// Created by hector on 16-04-19.
//
#ifndef TOBII_IS4_X11_RUNNERCONFIG_H
#define TOBII_IS4_X11_RUNNERCONFIG_H
#include <string>
#include <iostream>
#include <iomanip>
#include <cstdlib>
#include <libconfig.h++>
using namespace libconfig;
using namespace std;
#define CONFIG_FILE "/etc/tobii.cfg"
#define CFG_SCREEN_NAME "screen"
#define CFG_GAZE_POINTER_SIZE "gaze_pointer_size"
#define DEFAULT_CFG_GAZE_POINTER_SIZE 100
class RunnerConfig {
public:
bool load();
private:
public:
string getSelectedScreen() const;
void setSelectedScreen(const string &mSelectedScreen);
int getGazePointerSize() const;
void setGazePointerSize(int mGazePointerSize);
private:
string m_selectedScreen;
int m_gazePointerSize;
string loadField(const char *fieldName, Config *cfg);
};
#endif //TOBII_IS4_X11_RUNNERCONFIG_H