21 inline T 
get_env(
const std::string& varname, 
const T& defValue = T())
    23     auto s = ::getenv(varname.c_str());
    24     if (!s) 
return defValue;
    25     return mrpt::from_string<T>(s, defValue, 
false );
 
T get_env(const std::string &varname, const T &defValue=T())
Reads an environment variable, with a default value if not present. 
 
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.