68 class TWriteEnvParser;
135 const char *Getvalue(
const char *
name)
const;
143 {
return Getvalue(name) != 0; }
145 virtual const char *
GetRcName()
const {
return fRcName; }
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);
156 virtual void SetValue(
const char *name,
Int_t value);
157 virtual void SetValue(
const char *name,
Double_t value);
159 virtual TEnvRec *Lookup(
const char *
n)
const;
virtual void SetRcName(const char *name)
virtual const char * GetRcName() const
ULong_t Hash() const
Return hash value for this object.
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.
const char * GetValue() const
virtual void Print(Option_t *option="") const
This method must be overridden when a class wants to print itself.
UInt_t Hash(ECaseCompare cmp=kExact) const
Return hash value.
#define ClassDef(name, id)
THashList implements a hybrid collection class consisting of a hash table and a list to store TObject...
TObject & operator=(const TObject &rhs)
TObject assignment operator.
EEnvLevel GetLevel() const
~TEnvRec()
TNamed destructor.
Bool_t Defined(const char *name) const
friend class TWriteEnvParser
THashList * GetTable() const
const char * GetName() const
Returns name of object.
Int_t Compare(const TObject *obj) const
Comparison function for resources.
TString ExpandValue(const char *v)
Replace all strings by the value defined in the shell (obtained via TSystem::Getenv()).
const char * GetType() const
friend class TReadEnvParser
Mother of all ROOT objects.
RooCmdArg Save(Bool_t flag=kTRUE)