#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 |
Definition at line 23 of file XrdOucEnv.hh.
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] |
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] |
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] |
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] |
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] |
char* XrdOucEnv::global_env [private] |
int XrdOucEnv::global_len [private] |