/*! * \file include/commands/Command.h * \brief Command interface * * \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); private: static std::vector> commands; }; #endif