xrootd
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Attributes | Static Private Attributes | List of all members
XrdClientEnv Class Reference

#include <XrdClientEnv.hh>

Collaboration diagram for XrdClientEnv:
Collaboration graph
[legend]

Public Member Functions

const char * Get (const char *varname)
 
long GetInt (const char *varname)
 
const char * ShellGet (const char *varname)
 
long ShellGetInt (const char *varname)
 
void Put (const char *varname, const char *value)
 
void PutInt (const char *varname, long value)
 
void Lock ()
 
void UnLock ()
 
int ReInitLock ()
 

Static Public Member Functions

static XrdClientEnvInstance ()
 

Protected Member Functions

 XrdClientEnv ()
 
 ~XrdClientEnv ()
 
bool ImportStr (const char *varname)
 
bool ImportInt (const char *varname)
 

Private Attributes

XrdOucEnvfOucEnv
 
XrdSysRecMutex fMutex
 
XrdOucEnvfShellEnv
 

Static Private Attributes

static XrdClientEnvfgInstance
 

Constructor & Destructor Documentation

◆ XrdClientEnv()

XrdClientEnv::XrdClientEnv ( )
protected

◆ ~XrdClientEnv()

XrdClientEnv::~XrdClientEnv ( )
protected

Member Function Documentation

◆ Get()

const char* XrdClientEnv::Get ( const char *  varname)
inline

References XrdOucEnv::Get().

◆ GetInt()

long XrdClientEnv::GetInt ( const char *  varname)
inline

◆ ImportInt()

bool XrdClientEnv::ImportInt ( const char *  varname)
protected

◆ ImportStr()

bool XrdClientEnv::ImportStr ( const char *  varname)
protected

Import the variables from the shell environment, the variable names are capitalized and prefixed with "XRD_"

◆ Instance()

static XrdClientEnv* XrdClientEnv::Instance ( )
static

Referenced by ReInitLock().

◆ Lock()

void XrdClientEnv::Lock ( )
inline

References XrdSysMutex::Lock().

◆ Put()

void XrdClientEnv::Put ( const char *  varname,
const char *  value 
)
inline

References XrdOucEnv::Put().

◆ PutInt()

void XrdClientEnv::PutInt ( const char *  varname,
long  value 
)
inline

References XrdOucEnv::PutInt().

◆ ReInitLock()

int XrdClientEnv::ReInitLock ( )
inline

◆ ShellGet()

const char* XrdClientEnv::ShellGet ( const char *  varname)

Get a string variable from the environment, the same as Get, but checks the shell environment first

Referenced by GetInt().

◆ ShellGetInt()

long XrdClientEnv::ShellGetInt ( const char *  varname)

Get an integet variable from the environment, the same as GetInt, but checks the shell environment first

Referenced by GetInt().

◆ UnLock()

void XrdClientEnv::UnLock ( )
inline

References XrdSysMutex::UnLock().

Member Data Documentation

◆ fgInstance

XrdClientEnv* XrdClientEnv::fgInstance
staticprivate

◆ fMutex

XrdSysRecMutex XrdClientEnv::fMutex
private

◆ fOucEnv

XrdOucEnv* XrdClientEnv::fOucEnv
private

◆ fShellEnv

XrdOucEnv* XrdClientEnv::fShellEnv
private

The documentation for this class was generated from the following file: