CBMC
|
#include <options.h>
Public Types | |
typedef std::list< std::string > | value_listt |
typedef std::map< std::string, value_listt > | option_mapt |
Public Member Functions | |
const std::string | get_option (const std::string &option) const |
bool | get_bool_option (const std::string &option) const |
signed int | get_signed_int_option (const std::string &option) const |
unsigned int | get_unsigned_int_option (const std::string &option) const |
const value_listt & | get_list_option (const std::string &option) const |
bool | is_set (const std::string &option) const |
N.B. opts.is_set("foo") does not imply opts.get_bool_option("foo") | |
void | set_option (const std::string &option, const bool value) |
void | set_option (const std::string &option, const int value) |
void | set_option (const std::string &option, const unsigned value) |
void | set_option (const std::string &option, const std::string &value) |
void | set_option (const std::string &option, const char *value) |
void | set_option (const std::string &option, const value_listt &values) |
optionst () | |
~optionst () | |
optionst & | operator= (const optionst &other) |
json_objectt | to_json () const |
Returns the options as JSON key value pairs. | |
xmlt | to_xml () const |
Returns the options in XML format. | |
void | output (std::ostream &out) const |
Outputs the options to out | |
Protected Attributes | |
option_mapt | option_map |
const value_listt | empty_list |
typedef std::map<std::string, value_listt> optionst::option_mapt |
typedef std::list<std::string> optionst::value_listt |
Definition at line 44 of file options.cpp.
const optionst::value_listt & optionst::get_list_option | ( | const std::string & | option | ) | const |
Definition at line 80 of file options.cpp.
Definition at line 67 of file options.cpp.
Definition at line 50 of file options.cpp.
Definition at line 56 of file options.cpp.
N.B. opts.is_set("foo") does not imply opts.get_bool_option("foo")
Definition at line 62 of file options.cpp.
void optionst::output | ( | std::ostream & | out | ) | const |
Outputs the options to out
Definition at line 121 of file options.cpp.
Definition at line 28 of file options.cpp.
Definition at line 34 of file options.cpp.
Definition at line 20 of file options.cpp.
Definition at line 39 of file options.cpp.
|
inline |
json_objectt optionst::to_json | ( | ) | const |
Returns the options as JSON key value pairs.
Definition at line 93 of file options.cpp.
xmlt optionst::to_xml | ( | ) | const |
Returns the options in XML format.
Definition at line 104 of file options.cpp.
|
protected |
|
protected |