XrdOucEnv Class Reference

#include <XrdOucEnv.hh>

List of all members.

Public Member Functions

char * Env (int &envlen)
char * Get (const char *varname)
long GetInt (const char *varname)
void Put (const char *varname, const char *value)
void PutInt (const char *varname, long value)
char * Delimit (char *value)
const XrdSecEntitysecEnv ()
 XrdOucEnv (const char *vardata=0, int vardlen=0, const XrdSecEntity *secent=0)
 ~XrdOucEnv ()

Static Public Member Functions

static int Export (const char *Var, const char *Val)
static int Export (const char *Var, int Val)
static bool Import (const char *var, char *&val)
static bool Import (const char *var, long &val)

Private Attributes

XrdOucHash< char > env_Hash
const XrdSecEntitysecEntity
char * global_env
int global_len


Detailed Description

Definition at line 23 of file XrdOucEnv.hh.


Constructor & Destructor Documentation

XrdOucEnv::XrdOucEnv ( const char *  vardata = 0,
int  vardlen = 0,
const XrdSecEntity secent = 0 
)

Definition at line 25 of file XrdOucEnv.cc.

References env_Hash, global_env, global_len, Hash_dofree, malloc(), XrdOucHash< T >::Rep(), and size_t.

XrdOucEnv::~XrdOucEnv (  )  [inline]

Definition at line 81 of file XrdOucEnv.hh.

References free(), and global_env.


Member Function Documentation

char* XrdOucEnv::Env ( int &  envlen  )  [inline]

Definition at line 30 of file XrdOucEnv.hh.

References global_env, and global_len.

Referenced by XrdCmsFinderRMT::Locate(), and XrdPssFile::Open().

int XrdOucEnv::Export ( const char *  Var,
const char *  Val 
) [static]

Definition at line 80 of file XrdOucEnv.cc.

References malloc(), putenv, and strcpy().

Referenced by XrdOfs::Config_Display(), XrdOssSys::ConfigN2N(), XrdCmsConfig::ConfigOSS(), XrdFrmConfig::Configure(), XrdOfs::Configure(), XrdCmsClientConfig::Configure(), XrdConfig::Configure(), XrdXrootdProtocol::Configure(), Export(), XrdOssSpace::Init(), XrdOfsEvr::Init(), XrdOucStream::isSet(), XrdCmsConfig::PidFile(), XrdCmsSecurity::setSystemID(), XrdConfig::Setup(), and XrdXrootdloadFileSystem().

int XrdOucEnv::Export ( const char *  Var,
int  Val 
) [static]

Definition at line 103 of file XrdOucEnv.cc.

References Export(), and sprintf().

bool XrdOucEnv::Import ( const char *  var,
char *&  val 
) [static]

Definition at line 114 of file XrdOucEnv.cc.

References getenv(), and value.

Referenced by Import(), XrdClientEnv::ImportInt(), and XrdClientEnv::ImportStr().

bool XrdOucEnv::Import ( const char *  var,
long val 
) [static]

Definition at line 127 of file XrdOucEnv.cc.

References Import(), strtol(), and value.

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

Definition at line 46 of file XrdOucEnv.hh.

References env_Hash, and XrdOucHash< T >::Find().

Referenced by XrdClientEnv::Get(), XrdOucStream::isSet(), XrdCmsFinderRMT::Locate(), XrdBwmFile::open(), XrdOfs::remove(), XrdClientEnv::ShellGet(), XrdClientEnv::ShellGetInt(), and XrdOucStream::vSubs().

long XrdOucEnv::GetInt ( const char *  varname  ) 

Definition at line 145 of file XrdOucEnv.cc.

References env_Hash, XrdOucHash< T >::Find(), and NULL.

Referenced by XrdClientEnv::GetInt(), and XrdClientEnv::ShellGetInt().

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

Definition at line 57 of file XrdOucEnv.hh.

References env_Hash, Hash_dofree, and XrdOucHash< T >::Rep().

Referenced by XrdFrmCID::Get(), XrdClientEnv::ImportStr(), XrdOucStream::isSet(), XrdClientEnv::Put(), XrdFrmAdmin::Reloc(), and XrdFrmTransfer::SetupCmd().

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

Definition at line 162 of file XrdOucEnv.cc.

References env_Hash, Hash_dofree, XrdOucHash< T >::Rep(), and sprintf().

Referenced by XrdClientEnv::ImportInt(), and XrdClientEnv::PutInt().

char * XrdOucEnv::Delimit ( char *  value  ) 

Definition at line 69 of file XrdOucEnv.cc.

const XrdSecEntity* XrdOucEnv::secEnv (  )  [inline]

Definition at line 73 of file XrdOucEnv.hh.

References secEntity.


Member Data Documentation

XrdOucHash<char> XrdOucEnv::env_Hash [private]

Definition at line 85 of file XrdOucEnv.hh.

Referenced by Get(), GetInt(), Put(), PutInt(), and XrdOucEnv().

const XrdSecEntity* XrdOucEnv::secEntity [private]

Definition at line 86 of file XrdOucEnv.hh.

Referenced by secEnv().

char* XrdOucEnv::global_env [private]

Definition at line 87 of file XrdOucEnv.hh.

Referenced by Env(), XrdOucEnv(), and ~XrdOucEnv().

int XrdOucEnv::global_len [private]

Definition at line 88 of file XrdOucEnv.hh.

Referenced by Env(), and XrdOucEnv().


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