source: trunk/MagicSoft/Mars/mbase/MParEmulated.h@ 9037

Last change on this file since 9037 was 9035, checked in by tbretz, 17 years ago
*** empty log message ***
File size: 1.1 KB
Line 
1#ifndef MARS_MParEmulated
2#define MARS_MParEmulated
3
4#ifndef MARS_MParContainer
5#include "MParContainer.h"
6#endif
7
8class MParEmulated : public MParContainer
9{
10private:
11 Byte_t *fPtr;
12 TString fClassName;
13
14 TStreamerInfo *GetStreamerInfo(const TString &cls) const;
15 TMethodCall *GetMethodCall(const char *get, Int_t offset) const;
16
17public:
18 MParEmulated(const char *name=0, const char *title=0);
19
20 void SetClassName(const char *name) { fClassName=name; }
21
22 Byte_t **GetPtr() { return &fPtr; }
23
24 Int_t GetInt(Int_t offset) const { return *reinterpret_cast<Int_t*> (fPtr+offset); }
25 Double_t GetDouble(Int_t offset) const { return *reinterpret_cast<Double_t*>(fPtr+offset); }
26
27 TMethodCall *GetterMethod(const char *name, TString cls, Int_t offset=0) const;
28 TMethodCall *GetterMethod(const char *name) const { return GetterMethod(name, fClassName); }
29
30 void Print(TPRegexp &regex, TString classname, TString prefix, Int_t offset) const;
31 void Print(Option_t *o=0) const;
32
33 ClassDef(MParEmulated, 0) // Storage container for emulated classes from files
34};
35
36#endif
Note: See TracBrowser for help on using the repository browser.