source: trunk/MagicSoft/Mars/mdata/MDataChain.h@ 1353

Last change on this file since 1353 was 1353, checked in by tbretz, 22 years ago
*** empty log message ***
File size: 1.7 KB
Line 
1#ifndef MARS_MDataChain
2#define MARS_MDataChain
3
4/////////////////////////////////////////////////////////////////////////////
5// //
6// MDataList //
7// //
8// List of several filters //
9// //
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef MARS_MData
13#include "MData.h"
14#endif
15
16class MDataChain : public MData
17{
18private:
19 MData *fMember; // Filter
20
21 typedef enum {
22 kENoop,
23 kELog10,
24 kELog,
25 kEAbs,
26 kESin,
27 kECos,
28 kETan,
29 kESinH,
30 kECosH,
31 kETanH,
32 kEASin,
33 kEACos,
34 kEATan,
35 kESqrt,
36 kEPow10,
37 kEExp,
38 kESgn,
39 kENegative
40 } OperatorType_t;
41
42 OperatorType_t fOperatorType;
43
44 OperatorType_t ParseOperator(TString txt) const;
45
46 Int_t IsAlNum(TString txt);
47 Int_t GetBracket(TString txt);
48
49 MData *ParseString(TString txt, Int_t level);
50
51 MDataChain(const char *rule, OperatorType_t op);
52
53public:
54 MDataChain();
55 MDataChain(const char *rule, const char *name=NULL, const char *title=NULL);
56 ~MDataChain();
57
58 Double_t GetValue() const;
59 Bool_t PreProcess(const MParList *plist);
60
61 Bool_t IsValid() const { return fMember ? kTRUE : kFALSE; }
62 Bool_t IsReadyToSave() const;
63
64 void Print(Option_t *opt = "") const;
65
66 ClassDef(MDataChain, 0) // A chain/concatenation of MData objects
67};
68
69#endif
Note: See TracBrowser for help on using the repository browser.