CMS 3D CMS Logo

GetEnvironmentVariable.h
Go to the documentation of this file.
1 #ifndef Utilities_GetEnvironmentVariable_h
2 #define Utilities_GetEnvironmentVariable_h
3 
4 #include <cstdlib>
5 #include <string>
6 
7 namespace edm {
8  inline
10  char *p = ::getenv(name.c_str());
11  return (p ? std::string(p) : defaultValue);
12  }
13 }
14 #endif
HLT enums.
std::string getEnvironmentVariable(std::string const &name, std::string const &defaultValue=std::string())