source: trunk/MagicSoft/Mars/mbase/MTask.h@ 988

Last change on this file since 988 was 988, checked in by tbretz, 23 years ago
*** empty log message ***
File size: 1.4 KB
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
16class MFilter;
17class MParList;
18
19class MTask : public MInputStreamID
20{
21private:
22 const MFilter *fFilter;
23
24 Bool_t fIsPreprocessed; // Indicates the success of the PreProcessing (set by MTaskList)
25 UInt_t fNumExecutions; // Number of Excutions
26
27 virtual Bool_t PreProcess(MParList *pList);
28 virtual Bool_t Process();
29 virtual Bool_t PostProcess();
30
31public:
32 MTask(const char *name=NULL, const char *title=NULL);
33 virtual ~MTask()
34 {
35 }
36
37 void SetFilter(const MFilter *filter) { fFilter=filter; }
38 virtual void PrintStatistics(const Int_t lvl=0) const;
39
40 Bool_t CallPreProcess(MParList *plist);
41 Bool_t CallProcess();
42 Bool_t CallPostProcess();
43
44 ClassDef(MTask, 0) //Abstract base class for a task
45};
46
47#endif
Note: See TracBrowser for help on using the repository browser.