xrootd
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Attributes | Static Private Attributes

XrdClientEnv Class Reference

#include <XrdClientEnv.hh>

Collaboration diagram for XrdClientEnv:
Collaboration graph
[legend]

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 = 0

Constructor & Destructor Documentation

XrdClientEnv::XrdClientEnv ( ) [protected]
XrdClientEnv::~XrdClientEnv ( ) [protected]

References fgInstance, fOucEnv, and fShellEnv.


Member Function Documentation

const char* XrdClientEnv::Get ( const char *  varname) [inline]
long XrdClientEnv::GetInt ( const char *  varname) [inline]
bool XrdClientEnv::ImportInt ( const char *  varname) [protected]
bool XrdClientEnv::ImportStr ( const char *  varname) [protected]

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

References fShellEnv, XrdOucEnv::Import(), and XrdOucEnv::Put().

XrdClientEnv * XrdClientEnv::Instance ( ) [static]

References fgInstance, and XrdClientEnv().

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

Referenced by XrdClientEnv().

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

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

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

long XrdClientEnv::ShellGetInt ( const char *  varname)

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

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


Member Data Documentation

XrdClientEnv * XrdClientEnv::fgInstance = 0 [static, private]

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

Referenced by ShellGet(), and ShellGetInt().


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