forked from RoboCup-SSL/ssl-refbox
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfiguration.h
More file actions
49 lines (37 loc) · 1021 Bytes
/
configuration.h
File metadata and controls
49 lines (37 loc) · 1021 Bytes
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
45
46
47
48
#ifndef CONFIGURATION_H
#define CONFIGURATION_H
#include <string>
#include <vector>
#include <glibmm/ustring.h>
class Logger;
class Configuration {
public:
// [normal] section
unsigned int normal_half_seconds;
unsigned int normal_half_time_seconds;
unsigned int normal_timeout_seconds;
unsigned int normal_timeouts;
// [overtime] section
unsigned int overtime_break_seconds;
unsigned int overtime_half_seconds;
unsigned int overtime_half_time_seconds;
unsigned int overtime_timeout_seconds;
unsigned int overtime_timeouts;
// [shootout] section
unsigned int shootout_break_seconds;
// [global] section
unsigned int yellow_card_seconds;
// [files] section
std::string save_filename;
std::string log_filename;
// [ip] section
std::string address;
std::string legacy_port;
std::string protobuf_port;
std::string interface;
// [teams] section
std::vector<Glib::ustring> teams;
Configuration(const std::string &filename);
void dump(Logger &logger);
};
#endif