|
void | fill_and_check () |
| Fill and check the configuration. More...
|
|
void | read (const Path &path) |
| Read a configuration entry. More...
|
|
void | read (std::istream &input) |
| Read a configuration entry. More...
|
|
bool | logging_to_file () const |
| Return true if we are logging to a file, false if we are logging to console instead. More...
|
|
Path | get_log_file () const |
| Return log filename. More...
|
|
| Config (unsigned int flags=0U, const ConfigOverwrites &config_overwrites={}) |
| Construct a configuration. More...
|
|
template<class AssocT > |
| Config (const AssocT ¶meters, unsigned int flags=0U, const ConfigOverwrites &config_overwrites={}) |
| Construct a configuration. More...
|
|
template<class AssocT , class SeqT > |
| Config (const AssocT ¶meters, const SeqT &reserved, unsigned int flags=0U, const ConfigOverwrites &config_overwrites={}) |
| Construct a configuration. More...
|
|
| Config (const Config &)=default |
|
| Config (unsigned int flags=0U, const ConfigOverwrites &config_overwrites={}) |
| Construct a configuration. More...
|
|
template<class AssocT > |
| Config (const AssocT ¶meters, unsigned int flags=0U, const ConfigOverwrites &config_overwrites={}) |
| Construct a configuration. More...
|
|
template<class AssocT , class SeqT > |
| Config (const AssocT ¶meters, const SeqT &reserved, unsigned int flags=0U, const ConfigOverwrites &config_overwrites={}) |
| Construct a configuration. More...
|
|
| Config (const Config &)=default |
|
Config & | operator= (const Config &)=default |
|
virtual | ~Config ()=default |
|
template<class SeqT > |
void | set_reserved (const SeqT &reserved) |
|
void | read (std::istream &input) |
| Read configuration file from file, directory, or input stream. More...
|
|
void | read (const Path &path) |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
|
|
void | read (const Path &path, const std::string &pattern) |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
|
|
bool | empty () const |
| Check if the configuration is empty. More...
|
|
void | clear () |
| Clear the configuration. More...
|
|
bool | remove (const SectionKey §ion_key) noexcept |
| Remove section from configuration. More...
|
|
bool | remove (const std::string §ion, const std::string &key=std::string()) noexcept |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
|
|
void | update (const Config &other) |
| Update configuration using another configuration. More...
|
|
ConstSectionList | get (const std::string §ion) const |
| Get a list of sections having a name. More...
|
|
SectionList | get (const std::string §ion) |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
|
|
ConfigSection & | get_default_section () const |
|
ConfigSection & | get (const std::string §ion, const std::string &key) |
| Get a section by name and key. More...
|
|
const ConfigSection & | get (const std::string §ion, const std::string &key) const |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
|
|
ConfigSection & | add (const std::string §ion, const std::string &key=std::string()) |
| Add a new section to the configuration. More...
|
|
bool | has (const std::string §ion, const std::string &key=std::string()) const |
|
bool | has_any (std::string_view section) const |
|
std::string | get_default (std::string_view option) const |
|
bool | has_default (std::string_view option) const |
|
void | set_default (std::string_view option, const std::string &value) |
|
bool | is_reserved (const std::string &word) const |
|
std::list< Config::SectionKey > | section_names () const |
|
ConstSectionList | sections () const |
| Get a list of all sections in the configuration. More...
|
|
Configuration file handler for the loader.
Specialized version of the config file read that does some extra checks after reading the configuration file.