XrdClientEnv Class Reference

#include <XrdClientEnv.hh>

List of all members.

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)

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


Detailed Description

Definition at line 32 of file XrdClientEnv.hh.


Constructor & Destructor Documentation

XrdClientEnv::XrdClientEnv (  )  [protected]

Definition at line 37 of file XrdClientEnv.cc.

References DFLT_CONNECTTIMEOUT, DFLT_DATASERVERCONN_TTL, DFLT_DEBUG, DFLT_DFLTTCPWINDOWSIZE, DFLT_FIRSTCONNECTMAXCNT, DFLT_LBSERVERCONN_TTL, DFLT_MAXREDIRECTCOUNT, DFLT_MULTISTREAMCNT, DFLT_PURGEWRITTENBLOCKS, DFLT_READAHEADSIZE, DFLT_READAHEADSTRATEGY, DFLT_READCACHEBLKREMPOLICY, DFLT_READCACHESIZE, DFLT_READTRIMBLKSZ, DFLT_RECONNECTWAIT, DFLT_REDIRCNTTIMEOUT, DFLT_REMUSEDCACHEBLKS, DFLT_REQUESTTIMEOUT, DFLT_TRANSACTIONTIMEOUT, fOucEnv, fShellEnv, ImportInt(), NAME_CONNECTTIMEOUT, NAME_DATASERVERCONN_TTL, NAME_DEBUG, NAME_DFLTTCPWINDOWSIZE, NAME_FIRSTCONNECTMAXCNT, NAME_LBSERVERCONN_TTL, NAME_MAXREDIRECTCOUNT, NAME_MULTISTREAMCNT, NAME_PURGEWRITTENBLOCKS, NAME_READAHEADSIZE, NAME_READAHEADSTRATEGY, NAME_READCACHEBLKREMPOLICY, NAME_READCACHESIZE, NAME_READTRIMBLKSZ, NAME_RECONNECTWAIT, NAME_REDIRCNTTIMEOUT, NAME_REMUSEDCACHEBLKS, NAME_REQUESTTIMEOUT, NAME_TRANSACTIONTIMEOUT, and PutInt().

XrdClientEnv::~XrdClientEnv (  )  [protected]

Definition at line 147 of file XrdClientEnv.cc.

References fgInstance, fOucEnv, and fShellEnv.


Member Function Documentation

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

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

Definition at line 86 of file XrdClientEnv.cc.

References fShellEnv, XrdOucEnv::Import(), name, XrdOucEnv::Put(), transform, and value.

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

Definition at line 103 of file XrdClientEnv.cc.

References fShellEnv, XrdOucEnv::Import(), name, XrdOucEnv::PutInt(), transform, and value.

Referenced by XrdClientEnv().

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

Definition at line 53 of file XrdClientEnv.hh.

References fMutex, fOucEnv, XrdOucEnv::Get(), and m.

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

Definition at line 61 of file XrdClientEnv.hh.

References fMutex, fOucEnv, XrdOucEnv::GetInt(), and m.

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

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

Definition at line 120 of file XrdClientEnv.cc.

References fMutex, fOucEnv, fShellEnv, XrdOucEnv::Get(), and m.

long XrdClientEnv::ShellGetInt ( const char *  varname  ) 

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

Definition at line 134 of file XrdClientEnv.cc.

References fMutex, fOucEnv, fShellEnv, XrdOucEnv::Get(), XrdOucEnv::GetInt(), and m.

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

Definition at line 82 of file XrdClientEnv.hh.

References fMutex, fOucEnv, m, and XrdOucEnv::Put().

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

Definition at line 88 of file XrdClientEnv.hh.

References fMutex, fOucEnv, m, and XrdOucEnv::PutInt().

Referenced by XrdClientEnv().

XrdClientEnv * XrdClientEnv::Instance (  )  [static]

Definition at line 23 of file XrdClientEnv.cc.

References fgInstance.


Member Data Documentation

XrdOucEnv* XrdClientEnv::fOucEnv [private]

Definition at line 35 of file XrdClientEnv.hh.

Referenced by Get(), GetInt(), Put(), PutInt(), ShellGet(), ShellGetInt(), XrdClientEnv(), and ~XrdClientEnv().

XrdSysRecMutex XrdClientEnv::fMutex [private]

Definition at line 36 of file XrdClientEnv.hh.

Referenced by Get(), GetInt(), Put(), PutInt(), ShellGet(), and ShellGetInt().

XrdClientEnv * XrdClientEnv::fgInstance [static, private]

Definition at line 37 of file XrdClientEnv.hh.

Referenced by Instance(), and ~XrdClientEnv().

XrdOucEnv* XrdClientEnv::fShellEnv [private]

Definition at line 38 of file XrdClientEnv.hh.

Referenced by ImportInt(), ImportStr(), ShellGet(), ShellGetInt(), XrdClientEnv(), and ~XrdClientEnv().


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:50:17 2011 for ROOT_528-00b_version by  doxygen 1.5.1