The interface wxCmdLineArg provides information for an instance of argument passed on command line.
Example of use:
++itarg)
{
switch (itarg->GetKind())
{
if (itarg->IsNegated()) {
}
else {
}
break;
optionName = itarg->GetShortName();
switch (itarg->GetType()) {
break;
break;
break;
break;
}
break;
break;
}
}
const_iterator end() const
const_iterator begin() const
wxCmdLineParser is a class for parsing the command line.
Definition: cmdline.h:444
wxCmdLineArgs GetArguments() const
Returns the collection of arguments.
String class for passing textual data to or receiving it from wxWidgets.
Definition: string.h:315
@ wxCMD_LINE_VAL_DOUBLE
Definition: cmdline.h:59
@ wxCMD_LINE_VAL_STRING
Definition: cmdline.h:56
@ wxCMD_LINE_VAL_DATE
Definition: cmdline.h:58
@ wxCMD_LINE_VAL_NUMBER
Definition: cmdline.h:57
@ wxCMD_LINE_SWITCH
A boolean argument of the program; e.g. -v to enable verbose mode.
Definition: cmdline.h:69
@ wxCMD_LINE_OPTION
An argument with an associated value; e.g.
Definition: cmdline.h:73
@ wxCMD_LINE_PARAM
A parameter: a required program argument.
Definition: cmdline.h:76
With C++11, the for loop could be written:
- Since
- 3.1.0