iRoCS Toolbox
1.1.0
|
The ArgvIter class fetches arguments from a c-style char* array. More...
#include <ArgvIter.hh>
Public Member Functions | |
ArgvIter (int argc, const char *const *argv) | |
Constructor. More... | |
const char * | fetch () |
Returns the current argument, advances to the next argument and returns NULL is there are no arguments anymore. More... | |
void | reset (int argc, const char *const *argv) |
Specify new array of strings to be parsed. More... | |
The ArgvIter class fetches arguments from a c-style char* array.
The ArgvIter class fetches arguments from a c-style array. If you want to parse arguments that were delivered to your program on the command line, you use this class for iterating through them.
Definition at line 86 of file ArgvIter.hh.
|
inline |
Constructor.
argc | number of elements in argv |
argv | array of strings containing the arguments |
Definition at line 97 of file ArgvIter.hh.
|
inlinevirtual |
Returns the current argument, advances to the next argument and returns NULL is there are no arguments anymore.
Implements ArgIter.
Definition at line 114 of file ArgvIter.hh.
|
inline |
Specify new array of strings to be parsed.
argc | number of elements in argv |
argv | array of strings containing the arguments |
Definition at line 136 of file ArgvIter.hh.