Ignore:
Timestamp:
10/17/06 14:39:40 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mfbase
Files:
2 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mfbase/FBaseLinkDef.h

    r3330 r8091  
    1212#pragma link C++ class MFDataChain+;
    1313#pragma link C++ class MFDataMember+;
     14#pragma link C++ class MFDataPhrase+;
    1415#pragma link C++ class MFRealTimePeriod+;
    1516
  • trunk/MagicSoft/Mars/mfbase/MF.cc

    r7804 r8091  
    8888#include "MParList.h"
    8989
    90 #include "MFilterList.h"
    91 #include "MFDataChain.h"
    92 #include "MFDataMember.h"
     90//#include "MFilterList.h"
     91#include "MFDataPhrase.h"
     92//#include "MFDataMember.h"
    9393
    9494#include "MLog.h"
     
    123123
    124124    *fLog << inf << "Parsing filter rule... " << flush;
     125    fF = new MFDataPhrase(text);
     126    /*
    125127    if (!(fF=ParseString(text, 1)))
    126128    {
     
    128130        return;
    129131    }
    130 
     132    */
    131133    *fLog << inf << "found: ";
    132134    fF->Print();
     
    143145        delete fF;
    144146}
    145 
     147/*
    146148// --------------------------------------------------------------------------
    147149//
     
    348350    return filter0;
    349351}
     352*/
    350353
    351354// --------------------------------------------------------------------------
     
    481484
    482485    /*
     486     // It is assumed that each filter itself calls MFilter::ReadEnv
     487     // to process the Inverted directive
    483488     Bool_t rc = MFilter::ReadEnv(env, prefix, print);
    484489     if (rc==kERROR)
    485      return kERROR;
    486     */
     490        return kERROR;
     491        */
    487492    if (IsEnvDefined(env, prefix, "Condition", print))
    488493    {
     
    523528        SetAllowEmpty(kFALSE);
    524529
     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        /*
    525546        if (!(fF=ParseString(rule, 1)))
    526547        {
     
    528549            return kERROR;
    529550        }
    530 
     551        */
    531552        if (print)
    532553        {
  • trunk/MagicSoft/Mars/mfbase/MF.h

    r7804 r8091  
    2323    MFilter *fF;                     // Filter
    2424    Bool_t fAllowEmpty;              // Not a Bit to be stored
    25 
     25/*
    2626    Int_t IsRule(TString &txt, TString &rule) const;
    2727    Int_t IsVal(const TString &txt) const;
     
    3030    MFilter *ParseRule(TString &txt, MFilter *filter0, Int_t level) const;
    3131    MFilter *ParseString(TString txt, Int_t level);
    32 
     32  */
    3333    void StreamPrimitive(ostream &out) const;
    3434
  • trunk/MagicSoft/Mars/mfbase/Makefile

    r3927 r8091  
    1616
    1717SRCFILES = MF.cc \
     18           MFDataPhrase.cc \
    1819           MFilterList.cc \
    1920           MFEventSelector.cc \
Note: See TracChangeset for help on using the changeset viewer.