| Line |  | 
|---|
| 1 | #ifndef MARS_MContinue | 
|---|
| 2 | #define MARS_MContinue | 
|---|
| 3 |  | 
|---|
| 4 | ///////////////////////////////////////////////////////////////////////////// | 
|---|
| 5 | //                                                                         // | 
|---|
| 6 | // MContinue                                                               // | 
|---|
| 7 | //                                                                         // | 
|---|
| 8 | // Does nothing than return kCONTINUE in the Process-fucntion              // | 
|---|
| 9 | // (use with filters)                                                      // | 
|---|
| 10 | //                                                                         // | 
|---|
| 11 | ///////////////////////////////////////////////////////////////////////////// | 
|---|
| 12 |  | 
|---|
| 13 | #ifndef MARS_MTask | 
|---|
| 14 | #include "MTask.h" | 
|---|
| 15 | #endif | 
|---|
| 16 |  | 
|---|
| 17 | class MLog; | 
|---|
| 18 | class MFilter; | 
|---|
| 19 | class MTaskList; | 
|---|
| 20 | class MStatusDisplay; | 
|---|
| 21 |  | 
|---|
| 22 | class MContinue : public MTask | 
|---|
| 23 | { | 
|---|
| 24 | private: | 
|---|
| 25 | MTaskList *fTaskList;  //! pointer to the present tasklist | 
|---|
| 26 |  | 
|---|
| 27 | Int_t fRc;             // Return code returned in Process() | 
|---|
| 28 |  | 
|---|
| 29 | // MTask | 
|---|
| 30 | Int_t  PreProcess(MParList *list); | 
|---|
| 31 | Int_t  Process() { return fRc; } | 
|---|
| 32 | Int_t  PostProcess(); | 
|---|
| 33 |  | 
|---|
| 34 | // MContinue | 
|---|
| 35 | enum { kIsOwner = BIT(14), kFilterIsPrivate = BIT(15), kAllowEmpty = BIT(16) }; | 
|---|
| 36 |  | 
|---|
| 37 | public: | 
|---|
| 38 | MContinue(const TString rule="", const char *name=NULL, const char *title=NULL); | 
|---|
| 39 | MContinue(MFilter *f, const char *name=NULL, const char *title=NULL); | 
|---|
| 40 | ~MContinue(); | 
|---|
| 41 |  | 
|---|
| 42 | // MContinue | 
|---|
| 43 | void SetAllowEmpty(Bool_t b=kTRUE) { b ? SetBit(kAllowEmpty) : ResetBit(kAllowEmpty); } | 
|---|
| 44 | Bool_t IsAllowEmpty() const { return TestBit(kAllowEmpty); } | 
|---|
| 45 |  | 
|---|
| 46 | void SetInverted(Bool_t i=kTRUE); | 
|---|
| 47 | Bool_t IsInverted() const; | 
|---|
| 48 |  | 
|---|
| 49 | void SetRc(Int_t rc) { fRc = rc; } | 
|---|
| 50 |  | 
|---|
| 51 | // MParContainer | 
|---|
| 52 | void SetDisplay(MStatusDisplay *d); | 
|---|
| 53 | void SetLogStream(MLog *lg); | 
|---|
| 54 | Int_t ReadEnv(const TEnv &env, TString prefix, Bool_t print=kFALSE); | 
|---|
| 55 |  | 
|---|
| 56 | // TObject | 
|---|
| 57 | void Print(Option_t *o="") const; //*MENU* | 
|---|
| 58 |  | 
|---|
| 59 | ClassDef(MContinue, 2) //Task returning kCONTINUE (or any other return code) | 
|---|
| 60 | }; | 
|---|
| 61 |  | 
|---|
| 62 | #endif | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.