#include <command_parser.h>
|
void | addCommand (const std::string &command, const std::string &value, std::vector< std::pair< std::string, std::string >> &m_command_vector) |
|
int | checkArgumentExist (std::map< std::string, struct Argument > &command_map, std::string &arg_error) |
|
int | checkMandatoryArguments (std::map< std::string, struct Argument > &command_map, std::string &arg_error) |
|
int | checkMandatoryPosition (std::map< std::string, struct Argument > &command_map, std::string &arg_error) |
|
int | checkValue (std::map< std::string, struct Argument > &command_map, std::string &arg_error) |
|
| CommandParser ()=default |
|
void | getMandatoryArgs (const int &argc, const std::map< std::string, struct Argument > &command_map, std::vector< std::pair< std::string, int >> &arg_position) |
|
bool | hasEqual (const std::string &arg) |
|
int | helpMenu () |
|
bool | isHelpArg (const std::string &arg) |
|
bool | nextArgIsCommand (const std::string &arg) |
|
void | parseArguments (int argc, char *argv[], std::map< std::string, struct Argument > command_map) |
|
void | processEqualArg (const std::string &arg, int &arg_number, const int &euqal_pos, std::vector< std::pair< std::string, std::string >> &m_command_vector) |
|
void | processFlag (const std::string &arg, int &arg_number, std::vector< std::pair< std::string, std::string >> &m_command_vector) |
|
void | processLongArg (const std::string &arg, int &arg_number, std::vector< std::pair< std::string, std::string >> &m_command_vector, const std::map< std::string, struct Argument > &command_map) |
|
void | processNonEqualArg (const std::string &arg, const std::string &value, int &arg_number, std::vector< std::pair< std::string, std::string >> &m_command_vector) |
|
void | processShorArg (const std::string &arg, int &arg_number, std::vector< std::pair< std::string, std::string >> &m_command_vector, const std::map< std::string, struct Argument > &command_map) |
|
| ~CommandParser ()=default |
|
Definition at line 37 of file command_parser.h.
◆ CommandParser()
CommandParser::CommandParser |
( |
| ) |
|
|
default |
◆ ~CommandParser()
CommandParser::~CommandParser |
( |
| ) |
|
|
default |
◆ addCommand()
◆ checkArgumentExist()
◆ checkMandatoryArguments()
◆ checkMandatoryPosition()
◆ checkValue()
◆ getMandatoryArgs()
◆ hasEqual()
bool CommandParser::hasEqual |
( |
const std::string & |
arg | ) |
|
◆ helpMenu()
int CommandParser::helpMenu |
( |
| ) |
|
◆ isHelpArg()
bool CommandParser::isHelpArg |
( |
const std::string & |
arg | ) |
|
◆ nextArgIsCommand()
bool CommandParser::nextArgIsCommand |
( |
const std::string & |
arg | ) |
|
◆ parseArguments()
◆ processEqualArg()
◆ processFlag()
◆ processLongArg()
◆ processNonEqualArg()
◆ processShorArg()
◆ m_command_vector
The documentation for this class was generated from the following files: