|
OXY API 1.0
OXY API Library Documentation
|
Function object to load settings from an INI configuration file. More...
#include <settings.hpp>
Public Member Functions | |
| settings_t | operator() (std::filesystem::path const &file) const |
Function object to load settings from an INI configuration file.
This function object takes a filesystem path to an INI file, reads the configuration settings, and populates a settings_t instance with the values. If the file does not exist, it returns the default settings. It also expands any environment variables in the paths.
|
inline |
| file | - The filesystem path to the INI configuration file. |
References oxy::api::settings::expand, oxy::expandEnvVar, and oxy::api::settings::remove_quote.