| 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 |
|
|---|
| 22 | class MParContainer;
|
|---|
| 23 |
|
|---|
| 24 | class MParList : public TObject
|
|---|
| 25 | {
|
|---|
| 26 | private:
|
|---|
| 27 | TIter *fNext; //!
|
|---|
| 28 | TOrdCollection fContainer; // Collection of Parameter and Data Containers
|
|---|
| 29 |
|
|---|
| 30 | public:
|
|---|
| 31 | MParList();
|
|---|
| 32 | MParList(MParList &ts);
|
|---|
| 33 |
|
|---|
| 34 | ~MParList()
|
|---|
| 35 | {
|
|---|
| 36 | if (fNext)
|
|---|
| 37 | delete fNext;
|
|---|
| 38 | }
|
|---|
| 39 |
|
|---|
| 40 | Bool_t AddToList(MParContainer *obj, MParContainer *where = NULL);
|
|---|
| 41 |
|
|---|
| 42 | TObject *FindObject(const char *name) const;
|
|---|
| 43 |
|
|---|
| 44 | void Reset()
|
|---|
| 45 | {
|
|---|
| 46 | fNext = new TIter(&fContainer);
|
|---|
| 47 | }
|
|---|
| 48 |
|
|---|
| 49 | MParContainer *Next()
|
|---|
| 50 | {
|
|---|
| 51 | return (MParContainer*)(*fNext)();
|
|---|
| 52 | }
|
|---|
| 53 |
|
|---|
| 54 | void Print(Option_t *t = NULL);
|
|---|
| 55 |
|
|---|
| 56 | ClassDef(MParList, 1) //list of parameter containers (MParContainer)
|
|---|
| 57 | };
|
|---|
| 58 |
|
|---|
| 59 | #endif
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.