|
Libosmium
2.2.0
Fast and flexible C++ library for working with OpenStreetMap data
|
#include <options.hpp>

Public Types | |
| typedef option_map::iterator | iterator |
| typedef option_map::const_iterator | const_iterator |
| typedef option_map::value_type | value_type |
Public Member Functions | |
| Options ()=default | |
| Options (const std::initializer_list< value_type > &values) | |
| Options (const Options &)=default | |
| Options & | operator= (const Options &)=default |
| Options (Options &&)=default | |
| Options & | operator= (Options &&)=default |
| ~Options ()=default | |
| void | set (const std::string &key, const std::string &value) |
| void | set (const std::string &key, const char *value) |
| void | set (const std::string &key, bool value) |
| void | set (std::string data) |
| std::string | get (const std::string &key, const std::string &default_value="") const noexcept |
| bool | is_true (const std::string &key) const noexcept |
| size_t | size () const noexcept |
| iterator | begin () noexcept |
| iterator | end () noexcept |
| const_iterator | begin () const noexcept |
| const_iterator | end () const noexcept |
| const_iterator | cbegin () const noexcept |
| const_iterator | cend () const noexcept |
Private Types | |
| typedef std::map< std::string, std::string > | option_map |
Private Attributes | |
| option_map | m_options |
Stores key=value type options. This class can be used stand-alone or as a base class. Options are stored and retrieved by key using the different set() and get() methods.
You can iterate over all set options. Dereferencing an iterator yields a std::pair of the key and value strings.
| typedef option_map::const_iterator osmium::util::Options::const_iterator |
| typedef option_map::iterator osmium::util::Options::iterator |
|
private |
| typedef option_map::value_type osmium::util::Options::value_type |
|
default |
|
inlineexplicit |
|
default |
|
default |
|
default |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
Get value of "key" option. If not set the default_value (or empty string) is returned.
|
inlinenoexcept |
Is this option set to a true value ("true" or "yes")?
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinenoexcept |
|
private |
1.8.9.1