Lines Matching full:environment

53 /// Gets all environment variables.
55 /// \return A mapping of (name, value) pairs describing the environment
74 /// Gets the value of an environment variable.
76 /// \param name The name of the environment variable to query.
78 /// \return The value of the environment variable if it is defined, or none
85 LD(F("Environment variable '%s' is not defined") % name); in getenv()
88 LD(F("Environment variable '%s' is '%s'") % name % value); in getenv()
94 /// Gets the value of an environment variable with a default fallback.
96 /// \param name The name of the environment variable to query.
99 /// \return The value of the environment variable.
106 LD(F("Environment variable '%s' is not defined; using default '%s'") % in getenv_with_default()
110 LD(F("Environment variable '%s' is '%s'") % name % value); in getenv_with_default()
116 /// Sets the value of an environment variable.
118 /// \param name The name of the environment variable to set.
119 /// \param val The value to set the environment variable to. May be empty.
121 /// \throw std::runtime_error If there is an error setting the environment
126 LD(F("Setting environment variable '%s' to '%s'") % name % val); in setenv()
130 throw std::runtime_error(F("Failed to set environment variable '%s' to " in setenv()
137 throw std::runtime_error(F("Failed to set environment variable '%s' to " in setenv()
142 # error "Don't know how to set an environment variable." in setenv()
147 /// Unsets an environment variable.
149 /// \param name The name of the environment variable to unset.
151 /// \throw std::runtime_error If there is an error unsetting the environment
156 LD(F("Unsetting environment variable '%s'") % name); in unsetenv()
160 throw std::runtime_error(F("Failed to unset environment variable " in unsetenv()
167 throw std::runtime_error(F("Failed to unset environment variable " in unsetenv()
172 # error "Don't know how to unset an environment variable." in unsetenv()