irccd  3.0.3
Public Member Functions | Static Public Member Functions | List of all members
irccd::config Class Reference

Read .ini configuration file for irccd. More...

#include <config.hpp>

Inheritance diagram for irccd::config:
irccd::ini::document

Public Member Functions

 config (std::string path="")
 
auto get_path () const noexcept -> const std::string &
 
- Public Member Functions inherited from irccd::ini::document
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 Public Member Functions

static auto search (std::string_view name) -> std::optional< config >
 

Detailed Description

Read .ini configuration file for irccd.

Constructor & Destructor Documentation

◆ config()

irccd::config::config ( std::string  path = "")

Load the configuration from the specified path.

Parameters
paththe path

Member Function Documentation

◆ 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
namethe file name
Returns
the config or empty if not found

The documentation for this class was generated from the following file: