OXY API 1.0
OXY API Library Documentation
Loading...
Searching...
No Matches
oxy::core::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.

Member Function Documentation

◆ operator()()

settings_t & oxy::core::expand_fn::operator() ( settings_t & setts) const
inline

This function takes a settings_t structure and expands any environment variables present in the paths. It uses the expandEnvVar function to perform the expansion and updates the settings structure with the expanded paths. If an environment variable cannot be resolved, the original path is retained.

Parameters
settsThe settings_t structure containing paths to be expanded.
Returns
The updated settings_t structure with expanded paths.

References oxy::expandEnvVar.