source: trunk/MagicSoft/Mars/mbase/MParList.h@ 618

Last change on this file since 618 was 609, checked in by tbretz, 24 years ago
*** empty log message ***
File size: 1.5 KB
Line 
1#ifndef MPARLIST_H
2#define MPARLIST_H
3
4/////////////////////////////////////////////////////////////////////////////
5// //
6// MParList //
7// //
8// List of parameter containers (MParContainer) //
9// //
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef MAGIC_H
13#include "MAGIC.h"
14#endif
15
16#ifndef ROOT_TOrdCollection
17#include "TOrdCollection.h"
18#endif
19#ifndef MPARCONTAINER_H
20#include "MParContainer.h"
21#endif
22
23class MLog;
24
25class MParList : public MParContainer
26{
27private:
28 TIter *fNext; //!
29 TOrdCollection fContainer; // Collection of Parameter and Data Containers
30
31public:
32 MParList();
33 MParList(MParList &ts);
34
35 ~MParList()
36 {
37 if (fNext)
38 delete fNext;
39 }
40
41 Bool_t AddToList(MParContainer *obj, MParContainer *where = NULL);
42
43 void SetLogStream(MLog *log);
44
45 TObject *FindObject(const char *name) const;
46
47 void Reset()
48 {
49 fNext = new TIter(&fContainer);
50 }
51
52 MParContainer *Next()
53 {
54 return (MParContainer*)(*fNext)();
55 }
56
57 void Print(Option_t *t = NULL);
58
59 ClassDef(MParList, 1) //list of parameter containers (MParContainer)
60};
61
62#endif
Note: See TracBrowser for help on using the repository browser.