OXY-SYNC-DIRECTORY 1.0
OXY-SYNC-DIRECTORY Library Documentation
Loading...
Searching...
No Matches
oxy::directory::settings::load_fn Struct Reference

A function object that loads configuration settings from an INI file. More...

#include <settings.hpp>

Public Member Functions

settings_t operator() (std::filesystem::path const &file) const
 Loads configuration settings from the specified INI file.

Detailed Description

A function object that loads configuration settings from an INI file.

This functor takes a filesystem path to an INI configuration file, reads the settings from the file, and populates a settings_t object with the values. It uses the boost::property_tree library to parse the INI file and applies the remove_quote function to clean up string values.

Member Function Documentation

◆ operator()()

settings_t oxy::directory::settings::load_fn::operator() ( std::filesystem::path const & file) const
inline

Loads configuration settings from the specified INI file.

Parameters
fileThe path to the INI file to load.
Returns
A settings_t object populated with the configuration settings from the INI file.