OXY API 1.0
OXY API Library Documentation
Loading...
Searching...
No Matches
envvar.hpp File Reference

Environment variable expansion and access for the oxy library. More...

Classes

struct  oxy::expandEnvVar_fn
 Function object to expand environment variables in strings and paths. More...
struct  oxy::get_envvar_fn
 Function object to get the value of an environment variable. More...
struct  oxy::set_envVar_fn
 Function object to set the value of an environment variable. More...

Namespaces

namespace  oxy
 This root namespace contains the common types and operations for the OXY-API library.

Typedefs

template<class T>
using oxy::result = std::expected<T, std::error_code>
 A template alias for a result type that can either hold a value of type T or an error code.

Variables

constexpr expandEnvVar_fn oxy::expandEnvVar
 A constexpr instance of the expandEnvVar_fn function object for use in functional programming.
constexpr get_envvar_fn oxy::getEnvVar
 A constexpr instance of the get_envvar_fn function object for use in functional programming.
constexpr set_envVar_fn oxy::setEnvVar
 A constexpr instance of the set_envVar_fn function object for use in functional programming.

Detailed Description

Environment variable expansion and access for the oxy library.

This header defines functions for expanding environment variables in strings and paths, as well as getting and setting environment variables. It provides a convenient interface for working with environment variables in the context of the oxy library.

@license MPL-2.0