Read .ini configuration file for irccd.
More...
#include <config.hpp>
|
| config (std::string path="") |
|
auto | get_path () const noexcept -> const std::string & |
|
auto | contains (std::string_view key) const noexcept -> bool |
|
auto | get (std::string_view key) const noexcept -> section |
|
auto | find (std::string_view key) noexcept -> iterator |
|
auto | find (std::string_view key) const noexcept -> const_iterator |
|
auto | operator[] (std::string_view key) -> section & |
|
auto | operator[] (std::string_view key) const -> const section & |
|
|
static auto | search (std::string_view name) -> std::optional< config > |
|
Read .ini configuration file for irccd.
◆ config()
irccd::config::config |
( |
std::string |
path = "" | ) |
|
Load the configuration from the specified path.
- Parameters
-
◆ get_path()
auto irccd::config::get_path |
( |
| ) |
const -> const std::string & |
|
noexcept |
Get the path to the configuration file.
- Returns
- the path
◆ search()
static auto irccd::config::search |
( |
std::string_view |
name | ) |
-> std::optional< config > |
|
static |
Search the configuration file into the standard defined paths.
- Parameters
-
- Returns
- the config or empty if not found
The documentation for this class was generated from the following file: