39 #include "XrdOuc/XrdOucEnv.hh" 40 #include "XrdSys/XrdSysPthread.hh" 44 #define EnvGetLong(x) XrdClientEnv::Instance()->ShellGetInt(x) 45 #define EnvGetString(x) XrdClientEnv::Instance()->ShellGet(x) 46 #define EnvPutString(name, val) XrdClientEnv::Instance()->Put(name, val) 47 #define EnvPutInt(name, val) XrdClientEnv::Instance()->PutInt(name, val) 70 const char *
Get(
const char *varname) {
74 res = fOucEnv->Get(varname);
82 res = fOucEnv->GetInt(varname);
90 const char *
ShellGet(
const char *varname );
99 void Put(
const char *varname,
const char *value) {
102 fOucEnv->Put(varname, value);
105 void PutInt(
const char *varname,
long value) {
108 fOucEnv->PutInt(varname, value);
122 return fMutex.ReInitRecMutex();
static XrdClientEnv * fgInstance
void Put(const char *varname, const char *value)
long GetInt(const char *varname)
const char * Get(const char *varname)
const char * ShellGet(const char *varname)
Get a string variable from the environment, the same as Get, but checks the shell environment first...
#define XrdSysMutexHelper
static XrdClientEnv * Instance()
long ShellGetInt(const char *varname)
Get an integet variable from the environment, the same as GetInt, but checks the shell environment fi...
bool ImportInt(const char *varname)
void PutInt(const char *varname, long value)
bool ImportStr(const char *varname)
Import the variables from the shell environment, the variable names are capitalized and prefixed with...