1 | #ifndef MARS_MStatusArray
|
---|
2 | #define MARS_MStatusArray
|
---|
3 |
|
---|
4 | #ifndef ROOT_TObjArray
|
---|
5 | #include <TObjArray.h>
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | class TClass;
|
---|
9 | class TCanvas;
|
---|
10 | class TVirtualPad;
|
---|
11 |
|
---|
12 | class MStatusDisplay;
|
---|
13 |
|
---|
14 | class MStatusArray : public TObjArray
|
---|
15 | {
|
---|
16 | private:
|
---|
17 | enum {
|
---|
18 | kMyCanDelete = BIT(30)
|
---|
19 | };
|
---|
20 |
|
---|
21 | void SetCanDelete(const TCollection *list) const;
|
---|
22 | void SetMyCanDelete(const TCollection *list) const;
|
---|
23 | void ResetMyCanDelete(const TCollection *list) const;
|
---|
24 | void PrintObjectsInPad(const TCollection *list, const TString &name, Int_t lvl=0) const;
|
---|
25 | TObject *FindObjectInPad(TVirtualPad *pad, const char *object, TClass *base) const;
|
---|
26 | TClass *GetClass(const char *name) const;
|
---|
27 |
|
---|
28 | public:
|
---|
29 | MStatusArray() : TObjArray() { }
|
---|
30 |
|
---|
31 | TObject *DisplayIn(Option_t *o=0) const; // *MENU*
|
---|
32 | void DisplayIn(MStatusDisplay &d, const char *tab=0) const;
|
---|
33 | TObject *Display() const { return DisplayIn(); } // *MENU*
|
---|
34 |
|
---|
35 | TCanvas *FindCanvas(const char *name) const;
|
---|
36 |
|
---|
37 | TObject *FindObjectInCanvas(const char *object, const char *base, const char *canvas) const;
|
---|
38 | TObject *FindObjectInCanvas(const char *object, const char *canvas) const;
|
---|
39 |
|
---|
40 | void Print(Option_t *o="") const;
|
---|
41 | void Print(Option_t *wildcard, Option_t *) const
|
---|
42 | {
|
---|
43 | Print(wildcard);
|
---|
44 | }
|
---|
45 |
|
---|
46 | TObject *FindObject(const char *object, const char *base) const;
|
---|
47 | TObject *FindObject(const char *object) const;
|
---|
48 | TObject *FindObject(const TObject *) const { return 0; }
|
---|
49 |
|
---|
50 | Int_t Read(const char *name=NULL);
|
---|
51 | Int_t Write(const char *name=0, Int_t option=0, Int_t bufsize=0) const;
|
---|
52 | Int_t Write(const char *name=0, Int_t option=0, Int_t bufsize=0)
|
---|
53 | {
|
---|
54 | return const_cast<const MStatusArray*>(this)->Write(name, option, bufsize);
|
---|
55 | }
|
---|
56 |
|
---|
57 | void EnableTH1Workaround(const TCollection *list=0) const;
|
---|
58 |
|
---|
59 | ClassDef(MStatusArray, 0) // Helper class for status display
|
---|
60 | };
|
---|
61 |
|
---|
62 | #endif
|
---|