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) {
99 void Put(
const char *varname,
const char *value) {
105 void PutInt(
const char *varname,
long value) {
108 fOucEnv->PutInt(varname, value);
122 return fMutex.ReInitRecMutex();
#define XrdSysMutexHelper
void PutInt(const char *varname, long value)
static XrdClientEnv * fgInstance
long GetInt(const char *varname)
bool ImportStr(const char *varname)
Import the variables from the shell environment, the variable names are capitalized and prefixed with...
void Put(const char *varname, const char *value)
long ShellGetInt(const char *varname)
Get an integet variable from the environment, the same as GetInt, but checks the shell environment fi...
static XrdClientEnv * Instance()
bool ImportInt(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.
const char * Get(const char *varname)