Base class for options parsers. More...
#include <program_options.h>
Public Types | |
typedef OptionContext::FindType | FindType |
Public Member Functions | |
OptionParser (ParseContext &ctx) | |
ParseContext & | parse () |
virtual | ~OptionParser () |
Protected Member Functions | |
void | addOptionValue (const SharedOptPtr &key, const std::string &value) |
ParseContext & | ctx () const |
SharedOptPtr | getOption (const char *name, FindType ft) const |
SharedOptPtr | getOption (int posKey, const char *tok) const |
Private Member Functions | |
virtual void | doParse ()=0 |
Private Attributes | |
ParseContext * | ctx_ |
Base class for options parsers.
Definition at line 354 of file program_options.h.
Definition at line 356 of file program_options.h.
ProgramOptions::OptionParser::OptionParser | ( | ParseContext & | ctx | ) | [explicit] |
Definition at line 564 of file program_options.cpp.
ProgramOptions::OptionParser::~OptionParser | ( | ) | [virtual] |
Definition at line 568 of file program_options.cpp.
void ProgramOptions::OptionParser::addOptionValue | ( | const SharedOptPtr & | key, |
const std::string & | value | ||
) | [inline, protected] |
Definition at line 364 of file program_options.h.
ParseContext& ProgramOptions::OptionParser::ctx | ( | ) | const [inline, protected] |
Definition at line 361 of file program_options.h.
virtual void ProgramOptions::OptionParser::doParse | ( | ) | [private, pure virtual] |
SharedOptPtr ProgramOptions::OptionParser::getOption | ( | const char * | name, |
FindType | ft | ||
) | const [inline, protected] |
Definition at line 362 of file program_options.h.
SharedOptPtr ProgramOptions::OptionParser::getOption | ( | int | posKey, |
const char * | tok | ||
) | const [inline, protected] |
Definition at line 363 of file program_options.h.
Definition at line 571 of file program_options.cpp.
ParseContext* ProgramOptions::OptionParser::ctx_ [private] |
Definition at line 367 of file program_options.h.