source: trunk/MagicSoft/Mars/mbase/MContinue.h@ 7749

Last change on this file since 7749 was 6949, checked in by tbretz, 20 years ago
*** empty log message ***
File size: 1.8 KB
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
17class MLog;
18class MFilter;
19class MTaskList;
20class MStatusDisplay;
21
22class MContinue : public MTask
23{
24private:
25 MTaskList *fTaskList; //! pointer to the present tasklist
26
27 // MTask
28 Int_t PreProcess(MParList *list);
29 Int_t Process() { return kCONTINUE; }
30 Int_t PostProcess();
31
32 // MContinue
33 enum { kIsOwner = BIT(14), kFilterIsPrivate = BIT(15), kAllowEmpty = BIT(16) };
34
35public:
36 MContinue(const TString rule="", const char *name=NULL, const char *title=NULL);
37 MContinue(MFilter *f, const char *name=NULL, const char *title=NULL);
38 ~MContinue();
39
40 // MContinue
41 void SetAllowEmpty(Bool_t b=kTRUE) { b ? SetBit(kAllowEmpty) : ResetBit(kAllowEmpty); }
42 Bool_t IsAllowEmpty() const { return TestBit(kAllowEmpty); }
43
44 void SetInverted(Bool_t i=kTRUE);
45 Bool_t IsInverted() const;
46
47 // MParContainer
48 void SetDisplay(MStatusDisplay *d);
49 void SetLogStream(MLog *lg);
50 Int_t ReadEnv(const TEnv &env, TString prefix, Bool_t print=kFALSE);
51
52 // TObject
53 void Print(Option_t *o="") const; //*MENU*
54
55 ClassDef(MContinue, 1) //Task returning kCONTINUE
56};
57
58#endif
Note: See TracBrowser for help on using the repository browser.