OXY API 1.0
OXY API Library Documentation
Loading...
Searching...
No Matches
oxy::api::settings::expand_fn Struct Reference

Function object to expand environment variables in settings paths. More...

#include <settings.hpp>

Public Member Functions

settings_toperator() (settings_t &setts) const

Detailed Description

Function object to expand environment variables in settings paths.

This function object takes a settings_t instance and expands any environment variables present in the folder paths. It uses the expandEnvVar function to perform the expansion and returns the modified settings_t instance with expanded paths.

Member Function Documentation

◆ operator()()

settings_t & oxy::api::settings::expand_fn::operator() ( settings_t & setts) const
inline
Parameters
setts- The settings_t instance containing paths to expand.
Returns
The modified settings_t instance with expanded paths.

References oxy::expandEnvVar.