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

A function object that sets configuration properties in an INI file. More...

#include <settings.hpp>

Public Member Functions

void operator() (properties const &items) const
 Sets configuration properties in the default INI file.
void operator() (std::filesystem::path const &file, properties const &items) const
 Sets configuration properties in a specified INI file.

Detailed Description

A function object that sets configuration properties in an INI file.

This functor provides two overloads to set configuration properties in an INI file. The first overload allows specifying a custom file path, while the second overload uses the default configuration file path.

Member Function Documentation

◆ operator()() [1/2]

void oxy::directory::settings::set_fn::operator() ( properties const & items) const
inline

Sets configuration properties in the default INI file.

Parameters
itemsA map of properties to set in the INI file.

References operator()().

◆ operator()() [2/2]

void oxy::directory::settings::set_fn::operator() ( std::filesystem::path const & file,
properties const & items ) const
inline

Sets configuration properties in a specified INI file.

Parameters
fileThe path to the INI file to modify.
itemsA map of properties to set in the INI file.

Referenced by operator()().