11 inline bool operator==(const TString& t, const std::string& s)
12 { return (s == t.Data()); }
14 inline bool operator==(const std::string& s, const TString& t)
15 { return (s == t.Data()); }
22 class Exc_t : public std::string
26 Exc_t(const std::string& s) : std::string(s) {}
27 Exc_t(const char* s) : std::string(s) {}
31 const char* Data() const { return c_str(); }
33 ClassDef(Reve::Exc_t, 1);
36 Exc_t operator+(const Exc_t &s1, const std::string &s2);
37 Exc_t operator+(const Exc_t &s1, const TString &s2);
38 Exc_t operator+(const Exc_t &s1, const char *s2);
40 void WarnCaller(const TString& warning);
42 void ColorFromIdx(Color_t ci, UChar_t* col);
43 Color_t* FindColorVar(TObject* obj, const Text_t* varname);
45 /**************************************************************************/
46 /**************************************************************************/
48 void SetupEnvironment();
50 Bool_t CheckMacro(const Text_t* mac);
51 void AssertMacro(const Text_t* mac);
52 void Macro(const Text_t* mac);
53 void LoadMacro(const Text_t* mac);
55 /**************************************************************************/
56 /**************************************************************************/
58 TVirtualPad* PushPad(TVirtualPad* new_gpad=0, Int_t subpad=0);
59 TVirtualPad* PopPad(Bool_t modify_update_p=false);
64 Bool_t fModifyUpdateP;
66 PadHolder(Bool_t modify_update_p, TVirtualPad* new_gpad=0, Int_t subpad=0) :
67 fModifyUpdateP(modify_update_p)
68 { PushPad(new_gpad, subpad); }
70 virtual ~PadHolder() { PopPad(fModifyUpdateP); }
72 ClassDef(PadHolder, 0);
75 class GeoManagerHolder
78 TGeoManager* fManager;
80 GeoManagerHolder(TGeoManager* new_gmgr=0);
81 virtual ~GeoManagerHolder();
83 ClassDef(GeoManagerHolder, 0);
86 /**************************************************************************/
94 ReferenceCount() : fRefCount(0) {}
95 virtual ~ReferenceCount() {}
97 void IncRefCount() { ++fRefCount; }
98 void DecRefCount() { if(--fRefCount <= 0) OnZeroRefCount(); }
100 virtual void OnZeroRefCount() { delete this; }
102 ClassDef(ReferenceCount, 0);