OXY-SYNC-CONTAINER 1.0
OXY-SYNC-CONTAINER Library Documentation
Loading...
Searching...
No Matches
oxy::sync::settings::get_fn Struct Reference

Function object to retrieve the application settings. More...

#include <settings.h>

Public Member Functions

settings_t operator() () const
settings_t operator() (std::filesystem::path const &file) const

Detailed Description

Function object to retrieve the application settings.

This function object provides two overloads: one that retrieves the settings from the default configuration file path, and another that retrieves the settings from a specified filesystem path. It uses the load function to read the settings and returns a settings_t instance with the configuration values.

Member Function Documentation

◆ operator()() [1/2]

settings_t oxy::sync::settings::get_fn::operator() ( ) const
inline
Returns
A settings_t instance populated with the configuration settings from the default configuration file path.

References oxy::sync::settings::load.

◆ operator()() [2/2]

settings_t oxy::sync::settings::get_fn::operator() ( std::filesystem::path const & file) const
inline
Parameters
file- The filesystem path to the INI configuration file.
Returns
A settings_t instance populated with the configuration settings from the specified filesystem path.

References oxy::sync::settings::load.