7 env_(::getenv(envName) ? ::getenv(envName) :
"") {
8 if (
env_.length()==0)
env_ = defaultValue;
14 env_(::getenv(envName) ? ::getenv(envName) :
"") {
15 if (
env_.length()==0)
env_ = defaultValue;
22 std::string * mess =
new std::string(
envName_);
25 ::putenv((
char*)((*mess).c_str()));
34 const std::string &
envUtil::getEnv(
const char * envName,
const char * defaultValue) {
36 env_ = ::getenv(envName) ? ::getenv(envName) :
"";
37 if (
env_.length()==0)
env_ = defaultValue;
42 it(::getenv(envName)!=0) {}
std::ostream & operator<<(std::ostream &out, const ALILine &li)
envUtil()
default constructor
const std::string & getEnv() const
return the value
std::istream & operator>>(std::istream &input, CLHEP::HepGenMatrix &matrix)
envSwitch(const char *envName)
constructor from env var name