#ifndef CONFIG_H #define CONFIG_H #include #include class Config { public: enum Action { NONE, ON, OFF, PREVIOUS }; class Entry { public: Entry(const std::string & name); std::string name; int pin; Action on_start; Action on_exit; Action on_lock; Action on_unlock; protected: }; std::string port; std::vector entries; void read(const char * file); }; #endif