util::OptionParser Class Reference
[Command Line and Config File Interfacing]

Generic parser object for options. More...

List of all members.

Public Member Functions

Protected Types

Protected Attributes

Friends


Detailed Description

Generic parser object for options.

Uses an object of type util::OptionReader to retrieve the options from whereever (config file, command-line, etc.)


Member Typedef Documentation

typedef map<string,Option*> util::OptionParser::omap [protected]

typedef map<int,Option*> util::OptionParser::onmap [protected]


Constructor & Destructor Documentation

util::OptionParser::OptionParser ( OptionReader reader  ) 

virtual util::OptionParser::~OptionParser (  )  [virtual]

util::OptionParser::OptionParser ( const OptionParser other  ) 


Member Function Documentation

void util::OptionParser::deleteOptions ( void   ) 

void util::OptionParser::changeReader ( OptionReader reader  ) 

void util::OptionParser::addOption ( Option option  ) 

Option* util::OptionParser::getOption ( const string &  name  ) 

void util::OptionParser::parseOptions (  )  throw ( UException )

void util::OptionParser::printUsage ( ostream &  os  )  const

void util::OptionParser::writeConfig ( const string &  filename,
const bool  withComment = true,
const bool  order_by_n = true 
) const throw ( UException )

string util::OptionParser::toString ( const bool  withComment = false  )  const throw ( UException )


Member Data Documentation

OptionReader* util::OptionParser::reader_ [protected]

omap util::OptionParser::options_ [protected]

omap util::OptionParser::cmd_options_ [protected]

onmap util::OptionParser::n_options_ [protected]

int util::OptionParser::nopts_ [protected]


Generated on Wed Mar 11 17:44:37 2009 for LTL by  doxygen 1.5.3