Uses an object of type util::OptionReader to retrieve the options from whereever (config file, command-line, etc.)
typedef map<string,Option*> util::OptionParser::omap [protected] |
typedef map<int,Option*> util::OptionParser::onmap [protected] |
util::OptionParser::OptionParser | ( | OptionReader * | reader | ) |
virtual util::OptionParser::~OptionParser | ( | ) | [virtual] |
util::OptionParser::OptionParser | ( | const OptionParser & | other | ) |
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 ) |
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] |