#ifndef COMMANDMANAGER_H #define COMMANDMANAGER_H #include #include #include "ServerCommands.h" class CommandManager { public: typedef void (*Command) (ServerCommands&, const std::vector&); CommandManager(); void execute(ServerCommands& sc, const std::string& rawCommand) const; private: std::unordered_map commands; void registerCommand(const std::string& name, Command command); }; #endif