|
OXY-SYNC-DIRECTORY 1.0
OXY-SYNC-DIRECTORY Library Documentation
|
A function object that retrieves configuration settings. More...
#include <settings.hpp>
Public Member Functions | |
| settings_t | operator() () const |
| Retrieves configuration settings from the default configuration file path. | |
| settings_t | operator() (std::filesystem::path const &file) const |
| Retrieves configuration settings from a specified INI file path. | |
A function object that retrieves configuration settings.
This functor provides two overloads to retrieve configuration settings. The first overload retrieves settings from the default configuration file path, while the second overload allows specifying a custom file path. It uses the load function to read the settings from the specified INI file.
|
inline |
Retrieves configuration settings from the default configuration file path.
|
inline |
Retrieves configuration settings from a specified INI file path.
| file | The path to the INI file to load. |