source: trunk/MagicSoft/include-Classes/MBase/MParList.h@ 490

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