10 inline bool operator==(const TString& t, const std::string& s)
11 { return (s == t.Data()); }
13 inline bool operator==(const std::string& s, const TString& t)
14 { return (s == t.Data()); }
21 class Exc_t : public std::string
25 Exc_t(const std::string& s) : std::string(s) {}
26 Exc_t(const char* s) : std::string(s) {}
30 const char* Data() const { return c_str(); }
32 ClassDef(Reve::Exc_t, 1);
35 Exc_t operator+(const Exc_t &s1, const std::string &s2);
36 Exc_t operator+(const Exc_t &s1, const TString &s2);
37 Exc_t operator+(const Exc_t &s1, const char *s2);
39 void WarnCaller(const TString& warning);
41 void ColorFromIdx(Color_t ci, UChar_t* col);
42 Color_t* FindColorVar(TObject* obj, const Text_t* varname);
44 /**************************************************************************/
45 /**************************************************************************/
47 void SetupEnvironment();
49 Bool_t CheckMacro(const Text_t* mac);
50 void AssertMacro(const Text_t* mac);
51 void Macro(const Text_t* mac);
52 void LoadMacro(const Text_t* mac);
54 /**************************************************************************/
55 /**************************************************************************/
57 TVirtualPad* PushPad(TVirtualPad* new_gpad=0, Int_t subpad=0);
58 TVirtualPad* PopPad(Bool_t modify_update_p=false);
63 Bool_t fModifyUpdateP;
65 PadHolder(Bool_t modify_update_p, TVirtualPad* new_gpad=0, Int_t subpad=0) :
66 fModifyUpdateP(modify_update_p)
67 { PushPad(new_gpad, subpad); }
69 virtual ~PadHolder() { PopPad(fModifyUpdateP); }
71 ClassDef(PadHolder, 0);
74 class GeoManagerHolder
77 TGeoManager* fManager;
79 GeoManagerHolder(TGeoManager* new_gmgr=0);
80 virtual ~GeoManagerHolder();
82 ClassDef(GeoManagerHolder, 0);
85 /**************************************************************************/
93 ReferenceCount() : fRefCount(0) {}
94 virtual ~ReferenceCount() {}
96 void IncRefCount() { ++fRefCount; }
97 void DecRefCount() { if(--fRefCount <= 0) OnZeroRefCount(); }
99 virtual void OnZeroRefCount() { delete this; }
101 ClassDef(ReferenceCount, 0);