source: trunk/MagicSoft/Mars/mbase/MFilter.h@ 5138

Last change on this file since 5138 was 4991, checked in by tbretz, 20 years ago
*** empty log message ***
File size: 662 bytes
Line 
1#ifndef MARS_MFilter
2#define MARS_MFilter
3
4#ifndef MARS_MTask
5#include "MTask.h"
6#endif
7
8class MParList;
9
10class MFilter : public MTask
11{
12private:
13 Bool_t fInverted;
14
15 virtual Bool_t IsExpressionTrue() const = 0;
16
17public:
18 MFilter(const char *name=NULL, const char *title=NULL);
19
20 virtual TString GetRule() const;
21
22 Bool_t IsConditionTrue() const { return fInverted ? !IsExpressionTrue() : IsExpressionTrue(); }
23
24 void SetInverted(Bool_t i=kTRUE) { fInverted=i; }
25 Bool_t IsInverted() const { return fInverted; }
26
27 void PrintSkipped(UInt_t n, const char *str);
28
29 ClassDef(MFilter, 1) // Abstract base class for the filters
30};
31
32#endif
Note: See TracBrowser for help on using the repository browser.