library: libCore
#include "TEnv.h"

TEnvRec


class description - source file - inheritance tree (.pdf)

class TEnvRec : public TObject

Inheritance Chart:
TObject
<-
TEnvRec
    private:
TEnvRec(const char* n, const char* v, const char* t, EEnvLevel l) void ChangeValue(const char* v, const char* t, EEnvLevel l, Bool_t append = kFALSE) virtual Int_t Compare(const TObject* obj) const TString ExpandValue(const char* v) public:
TEnvRec() TEnvRec(const TEnvRec&) ~TEnvRec() static TClass* Class() EEnvLevel GetLevel() const virtual const char* GetName() const const char* GetType() const const char* GetValue() const virtual ULong_t Hash() const virtual TClass* IsA() const TEnvRec& operator=(const TEnvRec&) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members

    private:
TString fName env rec key name TString fType env rec type TString fValue env rec value EEnvLevel fLevel env rec level Bool_t fModified if env rec has been modified

Class Description

                                                                      
 TEnv                                                                 
                                                                      
 The TEnv class reads a config file, by default .rootrc. Three types  
 of .rootrc files are read: global, user and local files. The global  
 file resides in $ROOTSYS/etc, the user file in ~/ and the local file 
 in the current working directory.                                    
 The format of the .rootrc file is similar to the .Xdefaults format:  
                                                                      
   [+]<SystemName>.<RootName|ProgName>.<name>[(type)]:  <value>       
                                                                      
 Where <SystemName> is either Unix, WinNT, MacOS or Vms,              
 <RootName> the name as given in the TApplication ctor (or "RootApp"  
 in case no explicit TApplication derived object was created),        
 <ProgName> the current program name and <name> the resource name,    
 with optionally a type specification. <value> can be either a        
 string, an integer, a float/double or a boolean with the values      
 TRUE, FALSE, ON, OFF, YES, NO, OK, NOT. Booleans will be returned as 
 an integer 0 or 1. The options [+] allows the concatenation of       
 values to the same resouce name.                                     
                                                                      
 E.g.:                                                                
                                                                      
   Unix.Rint.Root.DynamicPath: .:$ROOTSYS/lib:~/lib                   
   myapp.Root.Debug:  FALSE                                           
   TH.Root.Debug: YES                                                 
   *.Root.MemStat: 1                                                  
                                                                      
 <SystemName> and <ProgName> or <RootName> may be the wildcard "*".   
 A # in the first column starts comment line.                         
                                                                      
 For the currently defined resources (and their default values) see   
 $ROOTSYS/etc/system.rootrc.                                          
                                                                      
 Note that the .rootrc config files contain the config for all ROOT   
 based applications.                                                  
                                                                      




Inline Functions


               void ~TEnvRec()
            TEnvRec TEnvRec(const char* n, const char* v, const char* t, EEnvLevel l)
              Int_t Compare(const TObject* obj) const
               void ChangeValue(const char* v, const char* t, EEnvLevel l, Bool_t append = kFALSE)
            TString ExpandValue(const char* v)
            TEnvRec TEnvRec()
        const char* GetName() const
        const char* GetValue() const
        const char* GetType() const
          EEnvLevel GetLevel() const
            ULong_t Hash() const
            TClass* Class()
            TClass* IsA() const
               void ShowMembers(TMemberInspector& insp, char* parent)
               void Streamer(TBuffer& b)
               void StreamerNVirtual(TBuffer& b)
            TEnvRec TEnvRec(const TEnvRec&)
           TEnvRec& operator=(const TEnvRec&)


Author: Fons Rademakers 22/09/95
Last update: root/base:$Name: $:$Id: TEnv.h,v 1.12 2006/03/01 12:07:24 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.