| Line | |
|---|
| 1 | #ifndef MARS_MFilter
|
|---|
| 2 | #define MARS_MFilter
|
|---|
| 3 |
|
|---|
| 4 | #ifndef MARS_MTask
|
|---|
| 5 | #include "MTask.h"
|
|---|
| 6 | #endif
|
|---|
| 7 |
|
|---|
| 8 | class MParList;
|
|---|
| 9 |
|
|---|
| 10 | class MFilter : public MTask
|
|---|
| 11 | {
|
|---|
| 12 | private:
|
|---|
| 13 | Bool_t fInverted;
|
|---|
| 14 |
|
|---|
| 15 | virtual Bool_t IsExpressionTrue() const = 0;
|
|---|
| 16 |
|
|---|
| 17 | public:
|
|---|
| 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.