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