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

Last change on this file since 2617 was 1948, checked in by wittek, 22 years ago
*** empty log message ***
File size: 611 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 ClassDef(MFilter, 1) // Abstract base class for the filters
28};
29
30#endif
Note: See TracBrowser for help on using the repository browser.