#ifndef COMMAND_H #define COMMAND_H #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"} }; MSGPACK_ADD_ENUM(CommandType::PluginList) MSGPACK_ADD_ENUM(CommandType::PluginRegistered) struct Command { CommandType commandType; std::string payload; MSGPACK_DEFINE(commandType, payload); }; #endif // COMMAND_H