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

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