TEnv
class description - source file - inheritance tree (.pdf)
private:
const char* Getvalue(const char* name) const
public:
TEnv(const char* name)
TEnv(const TEnv&)
virtual ~TEnv()
static TClass* Class()
Bool_t Defined(const char* name)
TOrdCollection* GetTable() const
virtual Int_t GetValue(const char* name, Int_t dflt)
virtual Double_t GetValue(const char* name, Double_t dflt)
virtual const char* GetValue(const char* name, const char* dflt) const
virtual TClass* IsA() const
virtual TEnvRec* Lookup(const char* n)
TEnv& operator=(const TEnv&)
virtual void Print(Option_t* option) const
virtual void PrintEnv(EEnvLevel level = kEnvAll) const
virtual void ReadFile(const char* fname, EEnvLevel level)
virtual void Save()
virtual void SaveLevel(EEnvLevel level)
virtual void SetValue(const char* name, const char* value, EEnvLevel level = kEnvChange, const char* type = "0")
virtual void SetValue(const char* name, EEnvLevel level = kEnvChange)
virtual void SetValue(const char* name, Int_t value)
virtual void SetValue(const char* name, Double_t value)
virtual void ShowMembers(TMemberInspector& insp, char* parent)
virtual void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
private:
TOrdCollection* fTable
TString fRcName
const char* Getvalue(const char *name)
Returns the character value for a named resouce.
Int_t GetValue(const char *name, Int_t dflt)
Returns the integer value for a resource. If the resource is not found
return the dflt value.
Double_t GetValue(const char *name, Double_t dflt)
Returns the dobule value for a resource. If the resource is not found
return the dflt value.
const char* GetValue(const char *name, const char *dflt)
Returns the character value for a named resouce. If the resource is
not found the dflt value is returned.
TEnvRec* Lookup(const char *name)
Loop over all resource records and return the one with name.
Return 0 in case name is not in the resoucre table.
void Print(Option_t *opt) const
Print all resources or the global, user or local resources separately.
void PrintEnv(EEnvLevel level) const
Print all resources for a certain level (global, user, local, changed).
void ReadFile(const char *fname, EEnvLevel level)
Read and parse the resource file for a certain level.
void Save()
Write the resource files for each level. The new files have the same
name as the original files. The old files are renamed to *.bak.
void SaveLevel(EEnvLevel level)
Write the resource file for a certain level.
void SetValue(const char *name, const char *value, EEnvLevel level,
const char *type)
Set the value of a resource or create a new resource.
void SetValue(const char *name, EEnvLevel level)
Set the value of a resource or create a new resource.
Use this method to set a resource like, "name=val".
If just "name" is given it will be interpreted as "name=1".
void SetValue(const char *name, Int_t value)
Set or create an integer resource value.
void SetValue(const char *name, double value)
Set or create a double resource value.
Inline Functions
void ~TEnv()
TEnv TEnv(const char* name)
TOrdCollection* GetTable() const
Bool_t Defined(const char* name)
TClass* Class()
TClass* IsA() const
void ShowMembers(TMemberInspector& insp, char* parent)
void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
TEnv TEnv(const TEnv&)
TEnv& operator=(const TEnv&)
Author: Fons Rademakers 22/09/95
Last update: root/base:$Name: $:$Id: TEnv.cxx,v 1.19 2005/04/07 14:43:35 rdm Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
ROOT page - Class index - Class Hierarchy - Top of the page
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.