00001
00002
00003
00004 #ifndef ROOT_TAttr
00005 #define ROOT_TAttr
00006
00007
00009
00010
00011
00012
00014 #include "TNamed.h"
00015 #include "TString.h"
00016 #include "TList.h"
00017 class TAttr: public TList
00018 {
00019 public:
00020 TAttr(const char *name="");
00021 ~TAttr();
00022 void SetAttr(const char *key,const char* val);
00023 void SetAttr(const char *key,int val);
00024 void SetAttr(const char *key,UInt_t val);
00025 void SetAttr(const char *key,double val);
00026 int SetAttr(const TAttr *att);
00027 void RemAttr(const char *key ) {return SetAttr(key,".remove");}
00028 int IAttr(const char *key) const;
00029 UInt_t UAttr(const char *key) const;
00030 double DAttr(const char *key) const;
00031 const char *SAttr(const char *key) const;
00032 void PrintAttr() const;
00033 static void SetDebug(Int_t k = 0) {_debug = k;}
00034
00035 private:
00036 static Int_t _debug;
00037 ClassDef(TAttr,1)
00038
00039 };
00040 #endif //ROOT_TAttr