20#ifndef ORES_UTILITY_ENVIRONMENT_ENVIRONMENT_HPP
21#define ORES_UTILITY_ENVIRONMENT_ENVIRONMENT_HPP
26namespace ores::utility::environment {
39 static std::optional<std::string>
get_value(
const std::string& name);
49 const std::string& default_value);
67 static void set_value(
const std::string& name,
const std::string& value);
Utilities for reading environment variables.
Definition environment.hpp:31
static int get_int_value_or_default(const std::string &name, int default_value)
Gets an environment variable value as an integer.
Definition environment.cpp:44
static void set_value(const std::string &name, const std::string &value)
Sets an environment variable value.
Definition environment.cpp:56
static std::optional< std::string > get_value(const std::string &name)
Gets an environment variable value.
Definition environment.cpp:30
static std::string get_value_or_default(const std::string &name, const std::string &default_value)
Gets an environment variable value with a default.
Definition environment.cpp:37