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

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