#include <options.h>
Definition at line 22 of file options.h.
◆ option_mapt
◆ value_listt
◆ optionst()
◆ ~optionst()
◆ get_bool_option()
bool optionst::get_bool_option |
( |
const std::string & |
option | ) |
const |
◆ get_list_option()
◆ get_option()
const std::string optionst::get_option |
( |
const std::string & |
option | ) |
const |
◆ get_signed_int_option()
signed int optionst::get_signed_int_option |
( |
const std::string & |
option | ) |
const |
◆ get_unsigned_int_option()
unsigned int optionst::get_unsigned_int_option |
( |
const std::string & |
option | ) |
const |
◆ is_set()
bool optionst::is_set |
( |
const std::string & |
option | ) |
const |
N.B. opts.is_set("foo") does not imply opts.get_bool_option("foo")
Definition at line 62 of file options.cpp.
◆ operator=()
◆ output()
void optionst::output |
( |
std::ostream & |
out | ) |
const |
Outputs the options to out
Definition at line 121 of file options.cpp.
◆ set_option() [1/6]
void optionst::set_option |
( |
const std::string & |
option, |
|
|
const bool |
value |
|
) |
| |
◆ set_option() [2/6]
void optionst::set_option |
( |
const std::string & |
option, |
|
|
const char * |
value |
|
) |
| |
|
inline |
◆ set_option() [3/6]
void optionst::set_option |
( |
const std::string & |
option, |
|
|
const int |
value |
|
) |
| |
◆ set_option() [4/6]
void optionst::set_option |
( |
const std::string & |
option, |
|
|
const std::string & |
value |
|
) |
| |
◆ set_option() [5/6]
void optionst::set_option |
( |
const std::string & |
option, |
|
|
const unsigned |
value |
|
) |
| |
◆ set_option() [6/6]
void optionst::set_option |
( |
const std::string & |
option, |
|
|
const value_listt & |
values |
|
) |
| |
|
inline |
◆ to_json()
Returns the options as JSON key value pairs.
Definition at line 93 of file options.cpp.
◆ to_xml()
xmlt optionst::to_xml |
( |
| ) |
const |
Returns the options in XML format.
Definition at line 104 of file options.cpp.
◆ empty_list
◆ option_map
The documentation for this class was generated from the following files: