| Line | |
|---|
| 1 | #ifndef MTASK_H
|
|---|
| 2 | #define MTASK_H
|
|---|
| 3 |
|
|---|
| 4 | /////////////////////////////////////////////////////////////////////////////
|
|---|
| 5 | // //
|
|---|
| 6 | // MTask //
|
|---|
| 7 | // //
|
|---|
| 8 | // Abstract base class for a task //
|
|---|
| 9 | // //
|
|---|
| 10 | /////////////////////////////////////////////////////////////////////////////
|
|---|
| 11 |
|
|---|
| 12 | #ifndef MINPUTSTREAMID_H
|
|---|
| 13 | #include "MInputStreamID.h"
|
|---|
| 14 | #endif
|
|---|
| 15 |
|
|---|
| 16 | class MFilter;
|
|---|
| 17 | class MParList;
|
|---|
| 18 |
|
|---|
| 19 | class MTask : public MInputStreamID
|
|---|
| 20 | {
|
|---|
| 21 | private:
|
|---|
| 22 | const MFilter *fFilter;
|
|---|
| 23 |
|
|---|
| 24 | Bool_t fIsPreprocessed; // Indicates the success of the PreProcessing (set by MTaskList)
|
|---|
| 25 |
|
|---|
| 26 | public:
|
|---|
| 27 | MTask() : fFilter(NULL), fIsPreprocessed(kFALSE) {}
|
|---|
| 28 | ~MTask()
|
|---|
| 29 | {
|
|---|
| 30 | }
|
|---|
| 31 |
|
|---|
| 32 | const MFilter *GetFilter() const { return fFilter; }
|
|---|
| 33 | void SetFilter(const MFilter *filter) { fFilter=filter; }
|
|---|
| 34 |
|
|---|
| 35 | Bool_t IsPreprocessed() const { return fIsPreprocessed; }
|
|---|
| 36 | void SetIsPreprocessed(Bool_t state=kTRUE) { fIsPreprocessed = state; }
|
|---|
| 37 |
|
|---|
| 38 | virtual Bool_t PreProcess(MParList *pList);
|
|---|
| 39 | virtual Bool_t Process();
|
|---|
| 40 | virtual Bool_t PostProcess();
|
|---|
| 41 |
|
|---|
| 42 | ClassDef(MTask, 0) //Abstract base class for a task
|
|---|
| 43 | };
|
|---|
| 44 |
|
|---|
| 45 | #endif
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.