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

Last change on this file since 608 was 604, checked in by tbretz, 24 years ago
*** empty log message ***
File size: 1.4 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#include <iostream.h>
17
18#ifndef ROOT_TOrdCollection
19#include "TOrdCollection.h"
20#endif
21
22class MLog;
23class MParContainer;
24
25class MParList : public TObject
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.