19 #ifndef __XRD_CL_ENV_HH__
20 #define __XRD_CL_ENV_HH__
50 bool GetString(
const std::string &key, std::string &value );
58 bool PutString(
const std::string &key,
const std::string &value );
65 bool GetInt(
const std::string &key,
int &value );
73 bool PutInt(
const std::string &key,
int value );
81 bool ImportInt(
const std::string &key,
const std::string &shellKey );
89 bool ImportString(
const std::string &key,
const std::string &shellKey );
152 inline std::string UnifyKey( std::string key )
157 std::transform( key.begin(), key.end(), key.begin(), ::tolower );
162 static const char prefix[] =
"xrd_";
163 if( key.compare( 0,
sizeof( prefix ) - 1, prefix ) == 0 )
164 key = key.substr(
sizeof( prefix ) - 1 );
169 std::string GetEnv(
const std::string &key );
170 typedef std::map<std::string, std::pair<std::string, bool> > StringMap;
171 typedef std::map<std::string, std::pair<int, bool> > IntMap;
174 StringMap pStringMap;
bool PutInt(const std::string &key, int value)
bool PutString(const std::string &key, const std::string &value)
bool GetDefaultIntValue(const std::string &key, int &value)
bool ImportString(const std::string &key, const std::string &shellKey)
bool ImportInt(const std::string &key, const std::string &shellKey)
bool GetString(const std::string &key, std::string &value)
virtual ~Env()
Destructor.
bool GetInt(const std::string &key, int &value)
bool GetDefaultStringValue(const std::string &key, std::string &value)
void ReInitialize(PrefType)