|
Public Member Functions |
|
| ConsoleUI (int argc, char *argv[], const char *cpszTitle=0, const char *cpszCopyright=0) |
| Instantiate a console user interface object.
|
| ~ConsoleUI (void) |
| destructor
|
|
void | setQuietMode (bool bQuiet) |
std::ostream & | getOutputStream (void) const |
void | format (const char *cpszField, const char *cpszValue) const |
| display a field and a value with padding so value starts at col 40 First column is field , second column is value
|
void | format (const char *cpszField, long lValue) const |
void | format (const char *cpszField, unsigned long ulValue) const |
void | formatBool (const char *cpszField, bool bValue) const |
void | format (const char *cpszField, bool bValue) const |
void | format (const char *cpszField, int iValue) const |
void | formatHeader (const char *cpszMsg) const |
| display a header
|
void | header (const char *cpszMsg) const |
| display a header
|
void | horizontalBar (void) const |
| display a line of dashes
|
void | newline (void) const |
| display a new-line
|
void | info (const char *cpszMsg) const |
| display an informational msg
|
void | warning (const char *cpszMsg1, const char *cpszMsg2=NULL) const |
| display a warning msg on stderr
|
void | error (const char *cpszMsg) const |
| display an error msg on stderr
|
void | fatal (int iErrcode, const char *cpszMsg1, const char *cpszMsg2=NULL) const |
| display an error msg on stderr and exit
|
|
void | handleUsageHelp (const char *cpszUsage, const char *cpszHelp, const char *cpszHelpFlags=NULL) |
| process usage msg and check command-line arguments
|
void | displayUsage (void) const |
| display usage or help and then exit!
|
void | displayHelp (void) const |
|
bool | hasArgString (const char *cpszArgument, const char *&cpszrValue) const |
bool | hasArgNumval (const char *cpszArgument, long &rlValue) const |
bool | hasArgSwitch (const char *cpszArgument) const |
|
bool | setToFirst (void) |
| set cursor to the first command line argument and return TRUE if there is one
|
bool | setToNext (void) |
| set cursor to the next command line argument and return TRUE if there is one
|
bool | isValid (void) const |
| return TRUE if the current command line argument is valid
|
| operator const char * (void) const |
| return current command line argument as C string pointer
|
const char * | getAsCString (void) const |
| return current command line argument as C string pointer
|
|
void | progressStart (void) |
void | progressStep (void) |
void | progressStop (void) const |
Protected Member Functions |
void | format (const char *cpszMag) const |
bool | hasOption (const char *cpszArgument, const char *&cpszrValue) const |
void | debugDisplayOptions (int numOpts) |