source: trunk/MagicSoft/Mars/mdata/MDataFormula.h@ 9198

Last change on this file since 9198 was 6893, checked in by tbretz, 20 years ago
*** empty log message ***
File size: 956 bytes
Line 
1#ifndef MARS_MDataFormula
2#define MARS_MDataFormula
3
4#ifndef ROOT_TOrdCollection
5#include <TOrdCollection.h>
6#endif
7
8#ifndef MARS_MData
9#include "MData.h"
10#endif
11
12class TFormula;
13class MParList;
14
15class MDataFormula : public MData
16{
17private:
18 TFormula *fFormula; // TFormula
19 TOrdCollection fMembers; // List of arguments
20
21 TString Parse(const char *rule);
22
23public:
24 MDataFormula(const char *rule=0, const char *name=0, const char *title=0);
25 MDataFormula(MDataFormula &ts);
26 ~MDataFormula();
27
28 Bool_t IsValid() const;// { return fFormula ? kTRUE : kFALSE; }
29 Bool_t IsReadyToSave() const;
30
31 Double_t GetValue() const;
32 Bool_t PreProcess(const MParList *plist);
33
34 // void Print(Option_t *opt = "") const;
35 TString GetRule() const;
36 // TString GetDataMember() const;
37
38 void SetVariables(const TArrayD &arr);
39
40 ClassDef(MDataFormula, 1) // A concatenation of MData objects by one operator
41};
42
43#endif
Note: See TracBrowser for help on using the repository browser.