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