void syten::EnvVars::init_env_var | ( | char const * | name, |
Target & | target, | ||
Function | f, | ||
std::string const & | msg = "" |
||
) |
Sets target
to f(str)
with str
initialised from the environment variable name
, if set.
If msg
is set, then also prints msg
.
References std::getenv(), and syten::logGI().
Referenced by init_env_vars().