/*! * \file include/commands/Command.h * \brief Commands * * \author xythobuz */ #ifndef _COMMAND_H_ #define _COMMAND_H_ #include #include #include #include class Command { public: virtual ~Command(); virtual std::string name() = 0; virtual std::string brief() = 0; virtual void printHelp(); virtual int execute(std::istream& args) = 0; static void fillCommandList(); static int command(std::string c); static int executeFile(std::string file); static std::string autoComplete(std::string begin); private: static std::vector> commands; }; #endif