10#ifndef TEUCHOS_ENVVARIABLES_HPP
11#define TEUCHOS_ENVVARIABLES_HPP
103T getEnvironmentVariable(std::string_view environmentVariableName,
104 const T defaultValue);
106bool idempotentlyGetNamedEnvironmentVariableAsBool(
107 const char name[],
bool &initialized,
const char environmentVariableName[],
108 const bool defaultValue);
123 T &value,
bool &initialized, std::string_view environmentVariableName,
124 const T defaultValue);
Smart reference counting pointer class for automatic garbage collection.
The Teuchos namespace contains all of the classes, structs and enums used by Teuchos,...
void unsetEnvironmentVariable(const char name[])
Remove a process environment variable.
T idempotentlyGetEnvironmentVariable(T &value, bool &initialized, std::string_view environmentVariableName, const T defaultValue)
Read a variable from the environment. Example usage:
const char * getEnvironmentVariableValue(const char name[])
Read a process environment variable by name.
void setEnvironmentVariable(const char name[], const char value[], int overwrite)
Set a process environment variable.