#ifndef COMMANDS_H #define COMMANDS_H #include #include #include #include #include namespace commands { typedef boost::function (const std::vector&)> Handler; extern std::map handlers; class CommandException : public std::runtime_error { public: CommandException(const char *s) : std::runtime_error(s) {}; }; void init(); std::vector execute(const std::vector& args); }; #endif