source: trunk/MagicSoft/Mars/mdata/MDataMember.h@ 8809

Last change on this file since 8809 was 3572, checked in by tbretz, 21 years ago
*** empty log message ***
File size: 1.3 KB
Line 
1#ifndef MARS_MDataMember
2#define MARS_MDataMember
3
4/////////////////////////////////////////////////////////////////////////////
5// //
6// MDataMember //
7// //
8/////////////////////////////////////////////////////////////////////////////
9
10#ifndef MARS_MData
11#include "MData.h"
12#endif
13
14class MDataMember : public MData
15{
16private:
17 TString fDataMember;
18
19 MParContainer *fObject;
20 TMethodCall *fCall;
21
22 enum { kIsInt = BIT(14) };
23
24public:
25 MDataMember(const char *member=NULL) : fObject(NULL), fCall(NULL)
26 {
27 fDataMember = member;
28 }
29
30 MDataMember(MParContainer *obj, TMethodCall *call);
31 MDataMember(MParContainer *obj, const TString call);
32
33 Double_t GetValue() const;
34 Bool_t PreProcess(const MParList *plist);
35
36 Bool_t IsValid() const { return fCall ? kTRUE : kFALSE; }
37 Bool_t IsReadyToSave() const;
38
39 //void Print(Option_t *opt = "") const;
40 TString GetRule() const;
41 TString GetDataMember() const;
42
43 Bool_t IsInt() const { return TestBit(kIsInt); }
44
45 void SetVariables(const TArrayD &arr) { }
46
47 ClassDef(MDataMember, 1) // MData object corresponding to a single data member of a Mars container
48};
49
50#endif
Note: See TracBrowser for help on using the repository browser.