#include <program_options.h>
Public Types | |
typedef Values::const_iterator | iterator |
typedef std::pair < SharedOptPtr, std::string > | OptionAndValue |
typedef std::vector < OptionAndValue > | Values |
Public Member Functions | |
void | add (const std::string &opt, const std::string &value) |
Adds a value for option opt. | |
void | add (const SharedOptPtr &opt, const std::string &value) |
iterator | begin () const |
void | clear () |
iterator | end () const |
ParsedValues (const OptionContext &a_ctx) | |
Public Attributes | |
const OptionContext * | ctx |
Private Attributes | |
Values | parsed_ |
Container of option-value-pairs representing values found by a parser.
Definition at line 316 of file program_options.h.
typedef Values::const_iterator ProgramOptions::ParsedValues::iterator |
Definition at line 320 of file program_options.h.
typedef std::pair<SharedOptPtr, std::string> ProgramOptions::ParsedValues::OptionAndValue |
Definition at line 318 of file program_options.h.
typedef std::vector<OptionAndValue> ProgramOptions::ParsedValues::Values |
Definition at line 319 of file program_options.h.
ProgramOptions::ParsedValues::ParsedValues | ( | const OptionContext & | a_ctx | ) | [inline, explicit] |
a_ctx | The OptionContext for which this object stores raw-values. |
Definition at line 325 of file program_options.h.
void ProgramOptions::ParsedValues::add | ( | const std::string & | opt, |
const std::string & | value | ||
) |
Adds a value for option opt.
Definition at line 555 of file program_options.cpp.
void ProgramOptions::ParsedValues::add | ( | const SharedOptPtr & | opt, |
const std::string & | value | ||
) | [inline] |
Definition at line 332 of file program_options.h.
iterator ProgramOptions::ParsedValues::begin | ( | ) | const [inline] |
Definition at line 336 of file program_options.h.
void ProgramOptions::ParsedValues::clear | ( | ) | [inline] |
Definition at line 339 of file program_options.h.
iterator ProgramOptions::ParsedValues::end | ( | ) | const [inline] |
Definition at line 337 of file program_options.h.
Definition at line 328 of file program_options.h.
Values ProgramOptions::ParsedValues::parsed_ [private] |
Definition at line 341 of file program_options.h.