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

Last change on this file since 1524 was 1524, checked in by tbretz, 22 years ago
*** empty log message ***
File size: 1.8 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 kEPositive,
40 kENegative
41 } OperatorType_t;
42
43 OperatorType_t fOperatorType;
44
45 OperatorType_t ParseOperator(TString txt) const;
46
47 Int_t IsAlNum(TString txt);
48 Int_t GetBracket(TString txt, char open, char close);
49
50 MData *ParseString(TString txt, Int_t level);
51
52 MDataChain(const char *rule, OperatorType_t op);
53
54public:
55 MDataChain();
56 MDataChain(const char *rule, const char *name=NULL, const char *title=NULL);
57 ~MDataChain();
58
59 Double_t GetValue() const;
60 Bool_t PreProcess(const MParList *plist);
61
62 Bool_t IsValid() const { return fMember ? kTRUE : kFALSE; }
63 Bool_t IsReadyToSave() const;
64
65// void Print(Option_t *opt = "") const;
66
67 TString GetRule() const;
68
69 ClassDef(MDataChain, 1) // A chain/concatenation of MData objects
70};
71
72#endif
Note: See TracBrowser for help on using the repository browser.