72 class TWriteEnvParser;
153 virtual const char *
GetValue(
const char *
name,
const char *dflt);
157 const char *
type = 0);
virtual void SetRcName(const char *name)
const char * GetType() const
const char * Getvalue(const char *name)
Returns the character value for a named resource.
virtual void Print(Option_t *option="") const
Print all resources or the global, user or local resources separately.
const char * GetValue() const
The TEnv class reads config files, by default named .rootrc.
void ChangeValue(const char *v, const char *t, EEnvLevel l, Bool_t append=kFALSE, Bool_t ignoredup=kFALSE)
Change the value of a resource.
TEnv & operator=(const TEnv &)
virtual void SetValue(const char *name, const char *value, EEnvLevel level=kEnvChange, const char *type=0)
Set the value of a resource or create a new resource.
Int_t Compare(const TObject *obj) const
Comparison function for resources.
virtual ~TEnv()
Delete the resource table.
#define ClassDef(name, id)
THashList implements a hybrid collection class consisting of a hash table and a list to store TObject...
virtual const char * GetRcName() const
virtual Int_t WriteFile(const char *fname, EEnvLevel level=kEnvAll)
Write resource records to file fname for a certain level.
Bool_t IgnoreDuplicates(Bool_t ignore)
If set to true, no warnings in case of duplicates are issued.
virtual Int_t ReadFile(const char *fname, EEnvLevel level)
Read and parse the resource file for a certain level.
virtual void Save()
Write the resource files for each level.
const char * GetName() const
Returns name of object.
friend class TWriteEnvParser
virtual Int_t GetValue(const char *name, Int_t dflt)
Returns the integer value for a resource.
virtual TEnvRec * Lookup(const char *n)
Loop over all resource records and return the one with name.
THashList * GetTable() const
virtual void PrintEnv(EEnvLevel level=kEnvAll) const
Print all resources for a certain level (global, user, local, changed).
ULong_t Hash() const
Return hash value for this object.
EEnvLevel GetLevel() const
TString ExpandValue(const char *v)
Replace all strings by the value defined in the shell (obtained via TSystem::Getenv()).
friend class TReadEnvParser
virtual void SaveLevel(EEnvLevel level)
Write the resource file for a certain level.
Mother of all ROOT objects.
Bool_t Defined(const char *name)
UInt_t Hash(ECaseCompare cmp=kExact) const
Return hash value.