source: branches/AddingGoogleTestEnvironment/mdata/MDataMember.h@ 18066

Last change on this file since 18066 was 9518, checked in by tbretz, 15 years ago
*** empty log message ***
File size: 1.5 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; //! A pointer to the container from the paramater list
20 TMethodCall *fCall; //! The corresponding method call to the member function
21
22 enum { kIsInt = BIT(14) };
23
24 Bool_t CheckGet() const;
25
26public:
27 MDataMember(const char *member=NULL) : fObject(NULL), fCall(NULL)
28 {
29 fDataMember = member;
30 }
31
32 MDataMember(MParContainer *obj, TMethodCall *call);
33 MDataMember(MParContainer *obj, const TString call);
34
35 Double_t GetValue() const;
36 const char *GetString() const;
37 Bool_t PreProcess(const MParList *plist);
38
39 Bool_t IsValid() const { return fCall ? kTRUE : kFALSE; }
40 Bool_t IsReadyToSave() const;
41
42 //void Print(Option_t *opt = "") const;
43 TString GetRule() const;
44 TString GetDataMember() const;
45
46 Bool_t IsInt() const { return TestBit(kIsInt); }
47
48 void SetVariables(const TArrayD &arr) { }
49
50 ClassDef(MDataMember, 2) // MData object corresponding to a single data member of a Mars container
51};
52
53#endif
Note: See TracBrowser for help on using the repository browser.