#include <XrdClEnv.hh>
Public Member Functions | |
| virtual | ~Env () |
| Destructor. | |
| bool | GetDefaultIntValue (const std::string &key, int &value) |
| bool | GetDefaultStringValue (const std::string &key, std::string &value) |
| bool | GetInt (const std::string &key, int &value) |
| bool | GetPtr (const std::string &key, void *&value) |
| bool | GetString (const std::string &key, std::string &value) |
| bool | ImportInt (const std::string &key, const std::string &shellKey) |
| bool | ImportString (const std::string &key, const std::string &shellKey) |
| bool | PutInt (const std::string &key, int value) |
| bool | PutPtr (const std::string &key, void *value) |
| bool | PutString (const std::string &key, const std::string &value) |
| void | RecreateLock () |
| void | ReInitializeLock () |
| void | UnLock () |
| void | WriteLock () |
A simple key value store intended to hold global configuration. It is able to import the settings from the shell environment, the variables imported this way supersede these provided from the C++ code.
Definition at line 37 of file XrdClEnv.hh.
|
inlinevirtual |
| bool XrdCl::Env::GetDefaultIntValue | ( | const std::string & | key, |
| int & | value ) |
Get default integer value for the given key
| key | : the key |
| value | : output parameter, default value corresponding to the key |
Definition at line 232 of file XrdClEnv.cc.
References XrdCl::theDefaultInts.
| bool XrdCl::Env::GetDefaultStringValue | ( | const std::string & | key, |
| std::string & | value ) |
Get default string value for the given key
| key | : the key |
| value | : output parameter, default value corresponding to the key |
Definition at line 244 of file XrdClEnv.cc.
References XrdCl::theDefaultStrs.
| bool XrdCl::Env::GetInt | ( | const std::string & | key, |
| int & | value ) |
Get an int associated to the given key
Definition at line 89 of file XrdClEnv.cc.
References XrdCl::Log::Debug(), XrdCl::DefaultEnv::GetLog(), and XrdCl::UtilityMsg.
Referenced by XrdCl::AsyncSocketHandler::AsyncSocketHandler(), XrdCl::Channel::Channel(), XrdCl::PostMasterImpl::PostMasterImpl(), XrdCl::ZipListHandler::ZipListHandler(), XrdCl::CopyProcess::AddJob(), BuildPath(), child(), XrdCl::AsyncSocketHandler::Connect(), XrdClHttp::Factory::GetHeaderTimeoutWithDefault(), XrdClHttp::File::GetHeaderTimeoutWithDefault(), XrdCl::Utils::GetHostAddresses(), XrdCl::Utils::GetIntParameter(), XrdCl::Utils::InferChecksumType(), XrdCl::Socket::Initialize(), XrdCl::XRootDTransport::InitializeChannel(), XrdCl::InitTLS(), XrdCl::URL::IsMetalink(), XrdCl::XRootDTransport::IsStreamBroken(), XrdCl::XRootDTransport::IsStreamTTLElapsed(), main(), XrdCl::XRootDTransport::NeedEncryption(), parent(), XrdCl::FileStateHandler::PgWrite(), prepare(), XrdCl::XRootDMsgHandler::Process(), XrdCl::MessageUtils::ProcessSendParams(), XrdCl::MessageUtils::RewriteCGIAndPath(), XrdCl::FileTimer::Run(), XrdCl::TickGeneratorTask::Run(), XrdClHttp::CurlWorker::Run(), and XrdCl::XRootDTransport::SubStreamNumber().
| bool XrdCl::Env::GetPtr | ( | const std::string & | key, |
| void *& | value ) |
Get a pointer associated to the given key
Definition at line 148 of file XrdClEnv.cc.
References XrdCl::Log::Debug(), XrdCl::DefaultEnv::GetLog(), and XrdCl::UtilityMsg.
| bool XrdCl::Env::GetString | ( | const std::string & | key, |
| std::string & | value ) |
Get a string associated to the given key
Definition at line 31 of file XrdClEnv.cc.
References XrdCl::Log::Debug(), XrdCl::DefaultEnv::GetLog(), and XrdCl::UtilityMsg.
Referenced by BuildPath(), BuildPrompt(), DoCat(), DoLS(), DoTail(), XrdCl::DefaultEnv::GetMonitor(), XrdCl::Utils::GetStringParameter(), XrdCl::PostMaster::Initialize(), and XrdCl::PlugInManager::ProcessEnvironmentSettings().
| bool XrdCl::Env::ImportInt | ( | const std::string & | key, |
| const std::string & | shellKey ) |
Import an int from the shell environment. Any imported setting takes precedence over the one set by other means.
Definition at line 185 of file XrdClEnv.cc.
References XrdCl::Log::Error(), XrdCl::DefaultEnv::GetLog(), XrdCl::Log::Info(), and XrdCl::UtilityMsg.
| bool XrdCl::Env::ImportString | ( | const std::string & | key, |
| const std::string & | shellKey ) |
Import a string from the shell environment. Any imported setting takes precedence over the one set by ther means.
Definition at line 214 of file XrdClEnv.cc.
References XrdCl::DefaultEnv::GetLog(), XrdCl::Log::Info(), and XrdCl::UtilityMsg.
| bool XrdCl::Env::PutInt | ( | const std::string & | key, |
| int | value ) |
Associate an int with the given key
Definition at line 110 of file XrdClEnv.cc.
References XrdCl::Log::Debug(), XrdCl::DefaultEnv::GetLog(), and XrdCl::UtilityMsg.
Referenced by DoCD(), DoLocate(), ExecuteCommand(), ExecuteInteractive(), XrdCl::InitTLS(), main(), ProcessCommandLineEnv(), and XrdPosixConfig::SetEnv().
| bool XrdCl::Env::PutPtr | ( | const std::string & | key, |
| void * | value ) |
Associate an int with the given key
Definition at line 169 of file XrdClEnv.cc.
Referenced by XrdPosixConfig::SetEnv().
| bool XrdCl::Env::PutString | ( | const std::string & | key, |
| const std::string & | value ) |
Associate a string with the given key
Definition at line 52 of file XrdClEnv.cc.
References XrdCl::Log::Debug(), XrdCl::DefaultEnv::GetLog(), and XrdCl::UtilityMsg.
Referenced by CreateExecutor(), DoCD(), main(), and ProcessCommandLineEnv().
|
inline |
Definition at line 155 of file XrdClEnv.hh.
Referenced by child().
|
inline |
Definition at line 144 of file XrdClEnv.hh.
|
inline |
Definition at line 136 of file XrdClEnv.hh.
|
inline |
Definition at line 128 of file XrdClEnv.hh.