option definition.
More...
#include <ini.hpp>
|
| option (std::string key) noexcept |
|
| option (std::string key, std::string value) noexcept |
|
| option (std::string key, std::vector< std::string > values) noexcept |
|
auto | get_key () const noexcept -> const std::string & |
|
auto | get_value () const noexcept -> const std::string & |
|
◆ option() [1/3]
irccd::ini::option::option |
( |
std::string |
key | ) |
|
|
noexcept |
Construct an empty option.
- Precondition
- key must not be empty
- Parameters
-
◆ option() [2/3]
irccd::ini::option::option |
( |
std::string |
key, |
|
|
std::string |
value |
|
) |
| |
|
noexcept |
Construct a single option.
- Precondition
- key must not be empty
- Parameters
-
key | the key |
value | the value |
◆ option() [3/3]
irccd::ini::option::option |
( |
std::string |
key, |
|
|
std::vector< std::string > |
values |
|
) |
| |
|
noexcept |
Construct a list option.
- Precondition
- key must not be empty
- Parameters
-
key | the key |
values | the values |
◆ get_key()
auto irccd::ini::option::get_key |
( |
| ) |
const -> const std::string & |
|
noexcept |
Get the option key.
- Returns
- the key
◆ get_value()
auto irccd::ini::option::get_value |
( |
| ) |
const -> const std::string & |
|
noexcept |
Get the option value.
- Returns
- the value
The documentation for this class was generated from the following file: