Changeset 8091 for trunk/MagicSoft/Mars/mfbase
- Timestamp:
- 10/17/06 14:39:40 (18 years ago)
- Location:
- trunk/MagicSoft/Mars/mfbase
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mfbase/FBaseLinkDef.h
r3330 r8091 12 12 #pragma link C++ class MFDataChain+; 13 13 #pragma link C++ class MFDataMember+; 14 #pragma link C++ class MFDataPhrase+; 14 15 #pragma link C++ class MFRealTimePeriod+; 15 16 -
trunk/MagicSoft/Mars/mfbase/MF.cc
r7804 r8091 88 88 #include "MParList.h" 89 89 90 #include "MFilterList.h"91 #include "MFData Chain.h"92 #include "MFDataMember.h"90 //#include "MFilterList.h" 91 #include "MFDataPhrase.h" 92 //#include "MFDataMember.h" 93 93 94 94 #include "MLog.h" … … 123 123 124 124 *fLog << inf << "Parsing filter rule... " << flush; 125 fF = new MFDataPhrase(text); 126 /* 125 127 if (!(fF=ParseString(text, 1))) 126 128 { … … 128 130 return; 129 131 } 130 132 */ 131 133 *fLog << inf << "found: "; 132 134 fF->Print(); … … 143 145 delete fF; 144 146 } 145 147 /* 146 148 // -------------------------------------------------------------------------- 147 149 // … … 348 350 return filter0; 349 351 } 352 */ 350 353 351 354 // -------------------------------------------------------------------------- … … 481 484 482 485 /* 486 // It is assumed that each filter itself calls MFilter::ReadEnv 487 // to process the Inverted directive 483 488 Bool_t rc = MFilter::ReadEnv(env, prefix, print); 484 489 if (rc==kERROR) 485 return kERROR;486 */490 return kERROR; 491 */ 487 492 if (IsEnvDefined(env, prefix, "Condition", print)) 488 493 { … … 523 528 SetAllowEmpty(kFALSE); 524 529 530 const Int_t fg = rule.First('>'); 531 const Int_t fl = rule.First('<'); 532 533 if (fg<0 && fl<0) 534 { 535 MFilter *f = (MFilter*)GetNewObject(rule, MFilter::Class()); 536 if (!f) 537 { 538 *fLog << err << dbginf << "Syntax Error: '" << rule << "' is neither a MFilter nor conditional sign found." << endl; 539 return kERROR; 540 } 541 fF = f; 542 } 543 else 544 fF = new MFDataPhrase(rule); 545 /* 525 546 if (!(fF=ParseString(rule, 1))) 526 547 { … … 528 549 return kERROR; 529 550 } 530 551 */ 531 552 if (print) 532 553 { -
trunk/MagicSoft/Mars/mfbase/MF.h
r7804 r8091 23 23 MFilter *fF; // Filter 24 24 Bool_t fAllowEmpty; // Not a Bit to be stored 25 25 /* 26 26 Int_t IsRule(TString &txt, TString &rule) const; 27 27 Int_t IsVal(const TString &txt) const; … … 30 30 MFilter *ParseRule(TString &txt, MFilter *filter0, Int_t level) const; 31 31 MFilter *ParseString(TString txt, Int_t level); 32 32 */ 33 33 void StreamPrimitive(ostream &out) const; 34 34 -
trunk/MagicSoft/Mars/mfbase/Makefile
r3927 r8091 16 16 17 17 SRCFILES = MF.cc \ 18 MFDataPhrase.cc \ 18 19 MFilterList.cc \ 19 20 MFEventSelector.cc \
Note:
See TracChangeset
for help on using the changeset viewer.