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