source: trunk/MagicSoft/Mars/mdata/MDataArray.h@ 2088

Last change on this file since 2088 was 1891, checked in by tbretz, 22 years ago
*** empty log message ***
File size: 1.1 KB
Line 
1#ifndef MARS_MDataArray
2#define MARS_MDataArray
3
4/////////////////////////////////////////////////////////////////////////////
5//
6// MDataArray
7//
8/////////////////////////////////////////////////////////////////////////////
9#ifndef MARS_MParContainer
10#include "MParContainer.h"
11#endif
12
13#ifndef ROOT_TObjArray
14#include <TObjArray.h>
15#endif
16
17class MData;
18class MParList;
19
20class MDataArray : public MParContainer
21{
22 TObjArray fList;
23
24 void StreamPrimitive(ofstream &out) const;
25
26public:
27 MDataArray(const char *name=NULL, const char *title=NULL);
28
29 void AddEntry(const TString rule);
30 void AddEntry(MData *data);
31
32 MData &operator[](Int_t i) const;
33 Double_t operator()(Int_t i);
34
35 Bool_t PreProcess(const MParList *plist);
36
37 TString GetDataMember() const;
38
39 void Print(Option_t *opt = "") const;
40 Bool_t AsciiWrite(ostream &out) const;
41
42 Int_t GetNumEntries() const { return fList.GetEntries(); }
43
44 void Clear(Option_t *option="") { fList.Clear(option); }
45 void Delete(Option_t *option="") { fList.Delete(option); }
46
47 ClassDef(MDataArray, 1) // An array of MData containers
48};
49
50#endif
Note: See TracBrowser for help on using the repository browser.