Goliath II
Controller Receiver
 All Classes Namespaces Files Functions Enumerations
map.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <string>
4 #include <MessageCarrier.pb.h>
5 #include <functional>
6 #include "config.h"
7 #include "control.h"
8 
18 void initConfig();
19 
25 int getConfig(CONFIG config);
26 
33 void setConfig(CONFIG config, int value);
34 
39 static std::map<CONTROL, std::function<goliath::proto::MessageCarrier(CONTROL,int)>> FUNCTION_MAP;
40 
45 static std::map<CONFIG, int> CONFIGURATION;
void setConfig(CONFIG config, int value)
Set config value.
Definition: map.cpp:13
int getConfig(CONFIG config)
Get config value.
Definition: map.cpp:9
CONFIG
enum for all configurations
Definition: config.h:14
void initConfig()
Initializes controller configuration.
Definition: map.cpp:3