| Line |  | 
|---|
| 1 | #ifndef MARS_MPrint | 
|---|
| 2 | #define MARS_MPrint | 
|---|
| 3 |  | 
|---|
| 4 | #ifndef MARS_MTask | 
|---|
| 5 | #include "MTask.h" | 
|---|
| 6 | #endif | 
|---|
| 7 |  | 
|---|
| 8 | class MParList; | 
|---|
| 9 |  | 
|---|
| 10 | class MPrint : public MTask | 
|---|
| 11 | { | 
|---|
| 12 | private: | 
|---|
| 13 | const TObject *fObject;  // pointer to container which has to be printed | 
|---|
| 14 | TString fObjName;        // given name to search for in the parameterlist | 
|---|
| 15 | TString fOption;         // Print option | 
|---|
| 16 |  | 
|---|
| 17 | enum { kSkip = BIT(14), kSeparator = BIT(15) }; | 
|---|
| 18 |  | 
|---|
| 19 | void Init(const char *name, const char *title); | 
|---|
| 20 |  | 
|---|
| 21 | public: | 
|---|
| 22 | MPrint(); | 
|---|
| 23 | MPrint(const char *obj,    const char *option="", const char *name=NULL, const char *title=NULL); | 
|---|
| 24 | MPrint(const TObject *obj, const char *option="", const char *name=NULL, const char *title=NULL); | 
|---|
| 25 |  | 
|---|
| 26 | void SetOption(Option_t *option) { fOption = option; } | 
|---|
| 27 | void EnableSkip(Bool_t skip=kTRUE) { skip ? SetBit(kSkip) : ResetBit(kSkip); } | 
|---|
| 28 |  | 
|---|
| 29 | Int_t PreProcess(MParList *pList); | 
|---|
| 30 | Int_t Process(); | 
|---|
| 31 |  | 
|---|
| 32 | ClassDef(MPrint, 0) // Task to call Print() function | 
|---|
| 33 | }; | 
|---|
| 34 |  | 
|---|
| 35 | #endif | 
|---|
| 36 |  | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.