--- /dev/null
+#pragma once\r
+\r
+#include <string>\r
+#include <json.hpp>\r
+\r
+namespace openxc\r
+{\r
+ class command\r
+ {\r
+ private:\r
+ std::string name_;\r
+ bool enabled_;\r
+ std::string handler_;\r
+ public:\r
+ std::string name() const;\r
+ bool enabled() const;\r
+ std::string handler() const;\r
+ \r
+ void from_json(const nlohmann::json& j);\r
+ nlohmann::json to_json() const;\r
+ };\r
+\r
+ void to_json(nlohmann::json& j, const command& p);\r
+ void from_json(const nlohmann::json& j, command& p);\r
+}\r