#include <wx/cmdline.h>
The interface wxCmdLineArg provides information for an instance of argument passed on command line.
Example of use:
With C++11, the for loop could be written:
Public Member Functions | |
virtual | ~wxCmdLineArg () |
virtual const wxDateTime & | GetDateVal () const =0 |
Returns the command line argument value as a wxDateTime. | |
virtual double | GetDoubleVal () const =0 |
Returns the command line argument value as a double. | |
virtual wxCmdLineEntryType | GetKind () const =0 |
Returns the command line argument entry kind. | |
virtual long | GetLongVal () const =0 |
Returns the command line argument value as a long. | |
virtual wxString | GetLongName () const =0 |
Returns the command line argument long name if any. | |
virtual wxString | GetShortName () const =0 |
Returns the command line argument short name if any. | |
virtual const wxString & | GetStrVal () const =0 |
Returns the command line argument value as a string. | |
virtual wxCmdLineParamType | GetType () const =0 |
Returns the command line argument parameter type. | |
virtual bool | IsNegated () const =0 |
Returns true if the switch was negated. | |
|
inlinevirtual |
|
pure virtual |
Returns the command line argument value as a wxDateTime.
wxCMD_LINE_VAL_DATE
options
|
pure virtual |
Returns the command line argument value as a double.
wxCMD_LINE_VAL_DOUBLE
options
|
pure virtual |
Returns the command line argument entry kind.
|
pure virtual |
Returns the command line argument long name if any.
|
pure virtual |
Returns the command line argument value as a long.
wxCMD_LINE_VAL_NUMBER
options
|
pure virtual |
Returns the command line argument short name if any.
|
pure virtual |
Returns the command line argument value as a string.
wxCMD_LINE_VAL_STRING
options and parameters
|
pure virtual |
Returns the command line argument parameter type.
wxCMD_LINE_OPTION
).
|
pure virtual |
Returns true if the switch was negated.