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

Last change on this file since 1912 was 1715, checked in by tbretz, 22 years ago
*** empty log message ***
File size: 1.2 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 MFilter;
18
19class MContinue : public MTask
20{
21private:
22 Bool_t PreProcess(MParList *list);
23 Bool_t Process() { return kCONTINUE; }
24
25 enum { kIsOwner = BIT(14) };
26
27public:
28 MContinue(const TString rule="", const char *name=NULL, const char *title=NULL);
29 MContinue(MFilter *f, const char *name=NULL, const char *title=NULL);
30 ~MContinue();
31
32 void SetFilter(MFilter *filter) { if (!TestBit(kIsOwner)) MTask::SetFilter(filter); }
33
34 ClassDef(MContinue, 1) //Task returning kCONTINUE
35};
36
37#endif
Note: See TracBrowser for help on using the repository browser.