CommandLine Class Reference

#include <CommandLine.h>

List of all members.

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

Constructor & Destructor Documentation

CommandLine::CommandLine ( int  argc,
char *const   argv[] 
)

Member Function Documentation

const char * CommandLine::dbPasswd (  )  const

References _fault, and _password.

Referenced by main().

const char * CommandLine::dbServer (  )  const

References _fault, and _server.

Referenced by main().

const char * CommandLine::dbUser (  )  const

References _fault, and _user.

Referenced by main().

int CommandLine::debugLevel (  ) 

References _debug.

Referenced by main().

bool CommandLine::isFault (  ) 

References _fault.

Referenced by main().

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().


Member Data Documentation

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]
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().


The documentation for this class was generated from the following files:

Generated by  doxygen 1.6.2