| Line | |
|---|
| 1 | #ifndef MARS_MTaskList
|
|---|
| 2 | #define MARS_MTaskList
|
|---|
| 3 |
|
|---|
| 4 | ///////////////////////////////////////////////////////////////////////
|
|---|
| 5 | // //
|
|---|
| 6 | // MTaskList //
|
|---|
| 7 | // //
|
|---|
| 8 | // Collection of tasks to be processed in the eventloop //
|
|---|
| 9 | // //
|
|---|
| 10 | ///////////////////////////////////////////////////////////////////////
|
|---|
| 11 |
|
|---|
| 12 | #ifndef MARS_MTask
|
|---|
| 13 | #include "MTask.h"
|
|---|
| 14 | #endif
|
|---|
| 15 |
|
|---|
| 16 | class MLog;
|
|---|
| 17 | class MParList;
|
|---|
| 18 | class MInputStreamID;
|
|---|
| 19 |
|
|---|
| 20 | class MTaskList : public MTask
|
|---|
| 21 | {
|
|---|
| 22 | private:
|
|---|
| 23 | TList *fTasks; // Container for the ordered list of different tasks
|
|---|
| 24 | MParList *fParList;
|
|---|
| 25 |
|
|---|
| 26 | UInt_t *fCntContinue;
|
|---|
| 27 | UInt_t *fCntTrue;
|
|---|
| 28 |
|
|---|
| 29 | enum { kIsOwner = BIT(14) };
|
|---|
| 30 |
|
|---|
| 31 | public:
|
|---|
| 32 | MTaskList(const char *name=NULL, const char *title=NULL);
|
|---|
| 33 | MTaskList(MTaskList &ts);
|
|---|
| 34 |
|
|---|
| 35 | ~MTaskList();
|
|---|
| 36 |
|
|---|
| 37 | void SetLogStream(MLog *log);
|
|---|
| 38 |
|
|---|
| 39 | Bool_t AddToList(MTask *task, const char *tType="All", MTask *where = NULL);
|
|---|
| 40 |
|
|---|
| 41 | TObject *FindObject(const char *name) const;
|
|---|
| 42 | TObject *FindObject(const TObject *obj) const;
|
|---|
| 43 |
|
|---|
| 44 | Bool_t ReInit(MParList *pList=NULL);
|
|---|
| 45 |
|
|---|
| 46 | Bool_t PreProcess(MParList *pList);
|
|---|
| 47 | Bool_t Process();
|
|---|
| 48 | Bool_t PostProcess();
|
|---|
| 49 |
|
|---|
| 50 | void Print(Option_t *opt = "") const;
|
|---|
| 51 | void PrintStatistics(const Int_t lvl=0) const;
|
|---|
| 52 | void SetOwner(Bool_t enable=kTRUE);
|
|---|
| 53 |
|
|---|
| 54 | const TList *GetList() const { return fTasks; }
|
|---|
| 55 |
|
|---|
| 56 | ClassDef(MTaskList, 0) //collection of tasks to be performed in the eventloop
|
|---|
| 57 | };
|
|---|
| 58 |
|
|---|
| 59 | #endif
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.