#ifndef COMMAND_H #define COMMAND_H #include #include #include // Define the command types as an enum enum class CommandType { PluginRegistered = 1000, PluginList = 1001 }; SERIO_REGISTER(CommandType::PluginRegistered, CommandType::PluginList) // Map the CommandType enum to its string representation static const std::unordered_map CommandTypeToString = { {CommandType::PluginRegistered, "PluginRegistered"}, {CommandType::PluginList, "PluginList"} }; struct Command { CommandType commandType; std::string payload; SERIO_REGISTER(commandType, payload); }; #endif // COMMAND_H