7 #ifndef __PARGPARSER_H__
8 #define __PARGPARSER_H__
std::vector< PString > PVecString
Parse the list of arguments passed to a program.
virtual ~ArgParser()
Destructeur of ArgParser.
ArgParser & operator=(const ArgParser &other)
Definition of equal operator of ArgParser.
void print() const
Print all the input option.
const PString & getCurrentOption() const
Get the current option.
size_t p_currentArg
Current argument to be parsed.
PVecString p_vecArg
Vector of arguments.
const PString & getCursorOption() const
Get the cursor option given to the program, in bash completion mode.
void rewind()
Go bask to the first argument.
bool isBashCompletionMode() const
Say if the program is in bash completion mode.
void copyArgParser(const ArgParser &other)
Copy function of ArgParser.
void getNextOption()
Move to the next option.
const PString & getPrevCursorOption() const
Get the previous option before the cursor option.
ArgParser()
Default constructor of ArgParser.
PString p_cursorOption
Option which is typed right now, given to the program (in bash completion mode)
bool p_bashCompletionMode
Say if the program is in bash completion mode.
size_t getNbArgument() const
Get the number of arguments passed to the program.
PString p_prevCursorOption
Previous option before the cursor option.
bool isEndOfOption() const
Say if is it the end of the options.
PString getRemainingArgument()
Get all remaining arguments of the ArgParser.
void initialisationArgParser()
Initialisation function of the class ArgParser.