#ifndef COMMAND_PARSER_H #define COMMAND_PARSER_H #include #include #include namespace platform { class CommandParser { public: CommandParser() = default; std::pair parse(const std::string& color, const std::vector>& options, const char defaultCommand, const int maxIndex); char getCommand() const { return command; }; int getIndex() const { return index; }; private: void messageError(const std::string& message); char command; int index; }; } /* namespace platform */ #endif /* COMMAND_PARSER_H */