#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. | |
virtual const char* | GetOption (const char *iName, int iIndex=0) const=0 |
Query specific commandline option (you can query second etc. such option). | |
virtual const char* | GetName (int iIndex=0) const=0 |
Query filename specified on commandline (that is, without leading '-'). | |
virtual void | AddOption (const char *iName, const char *iValue)=0 |
Add a command-line option to the command-line option array. | |
virtual void | AddName (const char *iName)=0 |
Add a command-line name to the command-line names array. | |
virtual bool | ReplaceOption (const char *iName, const char *iValue, int iIndex=0)=0 |
Replace the Nth command-line option with a new value. | |
virtual bool | ReplaceName (const char *iValue, int iIndex=0)=0 |
Replace the Nth command-line name with a new value. |
|
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(). |