#include <CommandLine.h>
Public Member Functions | |
CommandLine (int argc, char *const argv[]) | |
void | printUsage () const |
const char * | dbUser () const |
const char * | dbPasswd () const |
const char * | dbServer () const |
int | debugLevel () |
bool | isFault () |
Protected Member Functions | |
const char * | optionArgument () const |
int | parseNext () const |
void | parseError () |
Private Attributes | |
const char * | _opts |
bool | _fault |
int | _argc |
char *const * | _argv |
const char * | _password |
const char * | _user |
const char * | _server |
int | _debug |
CommandLine::CommandLine | ( | int | argc, | |
char *const | argv[] | |||
) |
References _debug, _fault, _password, _server, _user, optionArgument(), parseError(), and parseNext().
const char * CommandLine::dbPasswd | ( | ) | const |
const char * CommandLine::optionArgument | ( | ) | const [protected] |
Referenced by CommandLine().
void CommandLine::parseError | ( | ) | [protected] |
References _fault, and printUsage().
Referenced by CommandLine().
int CommandLine::parseNext | ( | ) | const [protected] |
References _argc, _argv, and _opts.
Referenced by CommandLine().
void CommandLine::printUsage | ( | ) | const |
Referenced by parseError().
int CommandLine::_argc [private] |
Referenced by parseNext().
char* const* CommandLine::_argv [private] |
Referenced by parseNext().
int CommandLine::_debug [private] |
Referenced by CommandLine(), and debugLevel().
bool CommandLine::_fault [private] |
Referenced by CommandLine(), dbPasswd(), dbServer(), dbUser(), isFault(), and parseError().
const char* CommandLine::_opts [private] |
Referenced by parseNext().
const char* CommandLine::_password [private] |
Referenced by CommandLine(), and dbPasswd().
const char* CommandLine::_server [private] |
Referenced by CommandLine(), and dbServer().
const char* CommandLine::_user [private] |
Referenced by CommandLine(), and dbUser().