![]() |
Public API Reference |
#include <cmdline.h>
Inheritance diagram for csCommandLineParser:
Public Methods | |
csCommandLineParser (iBase *Parent=NULL) | |
Constructor. More... | |
csCommandLineParser (int argc, const char *const argv[]) | |
Construct with a given command line. More... | |
virtual | ~csCommandLineParser () |
Destructor. More... | |
virtual void | Initialize (int argc, const char *const argv[]) |
Initialize for the given command line. More... | |
virtual void | Reset () |
Clear all options and names. More... | |
virtual const char * | GetOption (const char *iName, int iIndex=0) const |
Query specific commandline option (you can query second etc. such option). More... | |
virtual const char * | GetName (int iIndex=0) const |
Query filename specified on commandline (that is, without leading '-'). More... | |
virtual void | AddOption (const char *iName, const char *iValue) |
Add a command-line option to the command-line option array. More... | |
virtual void | AddName (const char *iName) |
Add a command-line name to the command-line names array. More... | |
virtual bool | ReplaceOption (const char *iName, const char *iValue, int iIndex=0) |
Replace the Nth command-line option with a new value. More... | |
virtual bool | ReplaceName (const char *iValue, int iIndex=0) |
Replace the Nth command-line name with a new value. More... | |
virtual bool | GetBoolOption (const char *iName, bool defaultValue=false) |
Check for a -[no]option toggle. More... |
Definition at line 47 of file csutil/cmdline.h.
|
Constructor.
|
|
Construct with a given command line.
|
|
Destructor.
Definition at line 69 of file csutil/cmdline.h. |
|
Add a command-line name to the command-line names array.
Implements iCommandLineParser. |
|
Add a command-line option to the command-line option array.
Implements iCommandLineParser. |
|
Check for a -[no]option toggle.
Implements iCommandLineParser. |
|
Query filename specified on commandline (that is, without leading '-').
Implements iCommandLineParser. |
|
Query specific commandline option (you can query second etc. such option).
Implements iCommandLineParser. |
|
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(). Implements iCommandLineParser. |
|
Replace the Nth command-line name with a new value.
Implements iCommandLineParser. |
|
Replace the Nth command-line option with a new value.
Implements iCommandLineParser. |
|
Clear all options and names.
Implements iCommandLineParser. |