#ifndef COMMANDDECODER_H #define COMMANDDECODER_H #include #include "CommandsType.h" #include "BaseDecoder.h" class CommandDecoder : public BaseDecoder { private: QList _decodedList; bool _isNextItemValue = true; int _argc; bool isCommand(char* argv); void checkIfEnoughArgsAreProvided(int argc); QList CommandValueDecoder(char* argv[]); void initCommandStrcut(char* argv, CommandsType& sample); void checkIfNextItemShallBeValue(char* argv); public: CommandDecoder(); QList decoderString() override; QList decoderString(int argc, char* argv[]) override; }; #endif //COMMANDDECODER_H