![]() |
Public API Reference |
#include <cmdline.h>
Inheritance diagram for iCommandLineParser:
Public Methods | |
virtual void | Initialize (int argc, const char *const argv[])=0 |
Initialize for the given command line. More... | |
virtual void | Reset ()=0 |
Clear all options and names. More... | |
virtual const char * | GetOption (const char *iName, int iIndex=0) const=0 |
Query specific commandline option (you can query second etc. such option). More... | |
virtual const char * | GetName (int iIndex=0) const=0 |
Query filename specified on commandline (that is, without leading '-'). More... | |
virtual void | AddOption (const char *iName, const char *iValue)=0 |
Add a command-line option to the command-line option array. More... | |
virtual void | AddName (const char *iName)=0 |
Add a command-line name to the command-line names array. More... | |
virtual bool | ReplaceOption (const char *iName, const char *iValue, int iIndex=0)=0 |
Replace the Nth command-line option with a new value. More... | |
virtual bool | ReplaceName (const char *iValue, int iIndex=0)=0 |
Replace the Nth command-line name with a new value. More... | |
virtual bool | GetBoolOption (const char *iName, bool defaultValue=false)=0 |
Check for a -[no]option toggle. More... | |
virtual const char * | GetAppDir ()=0 |
Returns the directory of the application binary. More... |
Definition at line 31 of file iutil/cmdline.h.
|
Add a command-line name to the command-line names array.
Implemented in csCommandLineParser. |
|
Add a command-line option to the command-line option array.
Implemented in csCommandLineParser. |
|
Returns the directory of the application binary.
Implemented in csCommandLineParser. |
|
Check for a -[no]option toggle.
The difference to using GetOption() to check for the two possibilities is that this function respects the argument order.
Implemented in csCommandLineParser. |
|
Query filename specified on commandline (that is, without leading '-').
Implemented in csCommandLineParser. |
|
Query specific commandline option (you can query second etc. such option).
Implemented in csCommandLineParser. |
|
Initialize for the given command line. Options from command line are added to any options already present --- i.e. those added via AddName() or AddOption(). Implemented in csCommandLineParser. |
|
Replace the Nth command-line name with a new value.
Implemented in csCommandLineParser. |
|
Replace the Nth command-line option with a new value.
Implemented in csCommandLineParser. |
|
Clear all options and names.
Implemented in csCommandLineParser. |