GTK+ IOStream
Beta
<< GTK+ >> add C++ IOStream operators to GTK+. Now with extra abilities ... like network serialisation
|
#include <OptionParser.H>
Public Member Functions | |
template<typename TYPE > | |
int | getArg (string key, int argc, char *argv[], TYPE &ret, int i) |
int | getArgString (string key, int argc, char *argv[], string &ret, int i) |
Class to parse options from the command line.
Example option forms on the command line are :
Definition at line 31 of file OptionParser.H.
|
inline |
Get the integer matching key from argc/argv
key | The option key to search for |
argc | The option count |
argv | The option array of c strings |
ret | [out] The value of the option matchin key, if found, then it is set to that value, otherwise left the same |
i | the arg number to start from |
TYPE | The type of the output argument |
Definition at line 43 of file OptionParser.H.
Get the string matching key from argc/argv
key | The option key to search for |
argc | The option count |
argv | The option array of c strings |
ret | [out] The integer value of the option matchin key, if found, then it is set to that value, otherwise left the same |
i | the arg number to start from |
Definition at line 60 of file OptionParser.H.