SyTen

◆ init_env_var() [1/2]

template<typename Target , typename Function >
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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: