changed config parsing
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
|
||||
#include <Poco/Util/ServerApplication.h>
|
||||
#include <Poco/Net/HTTPServer.h>
|
||||
#include <Poco/Dynamic/Struct.h>
|
||||
|
||||
namespace flippR_driver
|
||||
{
|
||||
@@ -42,17 +43,15 @@ private:
|
||||
private:
|
||||
const std::string DEFAULT_RUNTIME_DIR = "/tmp/flippR_driver-runtime/";
|
||||
const std::string SOCKET_NAME = "S.flippR_driver";
|
||||
const std::vector<std::string> REQUIRED_CONFIG_KEYS = {"display-config", "input-config", "lamp-config",
|
||||
"matrix-config", "solenoid-config", "sound-config"};
|
||||
int input_port;
|
||||
int output_port;
|
||||
|
||||
bool help_requested;
|
||||
|
||||
std::string input_config;
|
||||
std::string matrix_config;
|
||||
std::string lamp_config;
|
||||
std::string solenoid_config;
|
||||
std::string sound_config;
|
||||
std::string display_config;
|
||||
Poco::DynamicStruct configs;
|
||||
|
||||
std::string server_config;
|
||||
|
||||
std::shared_ptr<input::InputDriver> input_driver;
|
||||
|
||||
Reference in New Issue
Block a user