Set of options holding a parsed value.
More...
#include <program_options.h>
Set of options holding a parsed value.
ProgramOptions::ParsedOptions::ParsedOptions |
( |
| ) |
|
ProgramOptions::ParsedOptions::~ParsedOptions |
( |
| ) |
|
void ProgramOptions::ParsedOptions::add |
( |
const std::string & |
name | ) |
|
|
inline |
Assigns the parsed values in p to their options.
Parsed values for options that already have a value (and are not composing) are ignored. On the other hand, parsed values overwrite any existing default values.
- Parameters
-
- Exceptions
-
ValueError | if p contains more than one value for a non-composing option or if p contains a value that is invalid for its option. |
std::size_t ProgramOptions::ParsedOptions::count |
( |
const std::string & |
name | ) |
const |
|
inline |
bool ProgramOptions::ParsedOptions::empty |
( |
| ) |
const |
|
inline |
std::size_t ProgramOptions::ParsedOptions::size |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following files:
- /Users/danielbaeck/Dropbox/Uni Klagenfurt/Diplomarbeit/gringo44/libprogram_opts/program_opts/program_options.h
- /Users/danielbaeck/Dropbox/Uni Klagenfurt/Diplomarbeit/gringo44/libprogram_opts/src/program_options.cpp