xrootd
|
#include <XrdOucEnv.hh>
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 XrdSecEntity * | secEnv () |
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 XrdSecEntity * | secEntity |
char * | global_env |
int | global_len |
XrdOucEnv::XrdOucEnv | ( | const char * | vardata = 0 , |
int | vardlen = 0 , |
||
const XrdSecEntity * | secent = 0 |
||
) |
References env_Hash, global_env, global_len, Hash_dofree, and XrdOucHash< T >::Rep().
XrdOucEnv::~XrdOucEnv | ( | ) | [inline] |
References global_env.
char * XrdOucEnv::Delimit | ( | char * | value | ) |
char* XrdOucEnv::Env | ( | int & | envlen | ) | [inline] |
References global_env, and global_len.
Referenced by XrdOucMsubs::getVal(), XrdCmsFinderRMT::Locate(), XrdPssFile::Open(), and XrdOssSys::Stage_QT().
int XrdOucEnv::Export | ( | const char * | Var, |
const char * | Val | ||
) | [static] |
Referenced by XrdOfs::Config_Display(), XrdOssSys::ConfigN2N(), XrdCmsConfig::ConfigOSS(), XrdXrootdProtocol::Configure(), XrdPssSys::Configure(), XrdOfs::Configure(), XrdFrmConfig::Configure(), XrdConfig::Configure(), XrdCmsClientConfig::Configure(), Export(), XrdOssSpace::Init(), XrdOfsEvr::Init(), XrdOucStream::isSet(), XrdCmsConfig::PidFile(), XrdCmsSecurity::setSystemID(), XrdConfig::Setup(), XrdPssSys::xcach(), and XrdXrootdloadFileSystem().
int XrdOucEnv::Export | ( | const char * | Var, |
int | Val | ||
) | [static] |
References Export().
char* XrdOucEnv::Get | ( | const char * | varname | ) | [inline] |
References env_Hash, and XrdOucHash< T >::Find().
Referenced by XrdOssSys::Alloc_Cache(), XrdOucMsubs::getVal(), XrdOucStream::isSet(), XrdCmsFinderRMT::Locate(), XrdBwmFile::open(), XrdOfs::remove(), XrdClientEnv::ShellGet(), XrdClientEnv::ShellGetInt(), XrdOssSys::Stage_RT(), XrdOssSys::StatLS(), XrdOucMsubs::Subs(), and XrdOucStream::vSubs().
long XrdOucEnv::GetInt | ( | const char * | varname | ) |
References env_Hash, and XrdOucHash< T >::Find().
Referenced by XrdClientEnv::ShellGetInt().
bool XrdOucEnv::Import | ( | const char * | var, |
char *& | val | ||
) | [static] |
Referenced by Import(), XrdClientEnv::ImportInt(), and XrdClientEnv::ImportStr().
bool XrdOucEnv::Import | ( | const char * | var, |
long & | val | ||
) | [static] |
References Import().
void XrdOucEnv::Put | ( | const char * | varname, |
const char * | value | ||
) | [inline] |
References env_Hash, Hash_dofree, and XrdOucHash< T >::Rep().
Referenced by XrdFrmCID::Get(), XrdClientEnv::ImportStr(), XrdOucStream::isSet(), XrdFrmAdmin::Reloc(), and XrdFrmTransfer::SetupCmd().
void XrdOucEnv::PutInt | ( | const char * | varname, |
long | value | ||
) |
References env_Hash, Hash_dofree, and XrdOucHash< T >::Rep().
Referenced by XrdClientEnv::ImportInt().
const XrdSecEntity* XrdOucEnv::secEnv | ( | ) | [inline] |
References secEntity.
XrdOucHash<char> XrdOucEnv::env_Hash [private] |
Referenced by Get(), GetInt(), Put(), PutInt(), and XrdOucEnv().
char* XrdOucEnv::global_env [private] |
Referenced by Env(), XrdOucEnv(), and ~XrdOucEnv().
int XrdOucEnv::global_len [private] |
Referenced by Env(), and XrdOucEnv().
const XrdSecEntity* XrdOucEnv::secEntity [private] |
Referenced by secEnv().