#include <cmdoptns.h>
Public Methods | |
virtual | ~CommandOptionParse ()=0 |
Virtual destructor needed so that the object may be correctly deleted. More... | |
virtual bool | ArgsHaveError ()=0 |
Get the value of the error flag set if the parser encountered errors. More... | |
virtual const char * | PrintErrors ()=0 |
Return a string of text describing the list of errors encountered. More... | |
virtual const char * | PrintUsage ()=0 |
Return a string that contains the usage description of this list of paramaters. More... | |
virtual void | RegisterError (const char *err_msg)=0 |
Register an error with this parser. More... | |
virtual void | PerformTask ()=0 |
The method should be invoked by the main code once it has determined that the application should be started. More... |
To implement this object you can call MakeCommandOptionParse(); This will instantiate a dynamically allocated version of this class and parse the command line for the list of command options that are passed in.
|
Virtual destructor needed so that the object may be correctly deleted.
|
|
Get the value of the error flag set if the parser encountered errors.
|
|
The method should be invoked by the main code once it has determined that the application should be started.
|
|
Return a string of text describing the list of errors encountered.
|
|
Return a string that contains the usage description of this list of paramaters.
|
|
Register an error with this parser. This string will be appended to the errors already buffered in this object. |