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

Last change on this file since 2109 was 2109, checked in by tbretz, 22 years ago
*** empty log message ***
File size: 1.2 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 TString GetRule(int i) const;
36
37 Bool_t PreProcess(const MParList *plist);
38
39 TString GetDataMember() const;
40
41 void Print(Option_t *opt = "") const;
42 Bool_t AsciiWrite(ostream &out) const;
43
44 Int_t GetNumEntries() const { return fList.GetEntries(); }
45
46 void Clear(Option_t *option="") { fList.Clear(option); }
47 void Delete(Option_t *option="") { fList.Delete(option); }
48
49 ClassDef(MDataArray, 1) // An array of MData containers
50};
51
52#endif
Note: See TracBrowser for help on using the repository browser.