Ignore:
Timestamp:
11/19/03 18:47:36 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mreport
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mreport/MReport.cc

    r2529 r2532  
    8484}
    8585
    86 MTime *MReport::FindTime(MParList &plist)
     86Bool_t MReport::SetupReading(MParList &plist)
    8787{
    8888    fTime = NULL;
     
    9393        *fLog << warn << " WARNING - Class name '" << id << "' ";
    9494        *fLog << " doesn't begin with 'MReport'... no MTime assigned." << endl;
    95         return NULL;
     95        return kFALSE;
    9696    }
    9797
     
    100100    {
    101101        *fLog << warn << " WARNING - No postfix existing... no MTime assigned." << endl;
    102         return NULL;
     102        return kFALSE;
    103103    }
    104104
     
    106106
    107107    fTime = (MTime*)plist.FindCreateObj("MTime", id);
    108     return fTime;
     108    if (!fTime)
     109        return kFALSE;
     110
     111    return kTRUE;
    109112}
  • trunk/MagicSoft/Mars/mreport/MReport.h

    r2529 r2532  
    2323    MReport(const char *id) : fIdentifier(id), fState(0xff), fTime(0) { }
    2424
     25    virtual Bool_t SetupReading(MParList &plist);
    2526    virtual Bool_t InterpreteBody(TString &str);
     27
    2628    Bool_t Interprete(TString &str);
    2729    Bool_t CheckIdentifier(TString &str) const
     
    3840    const TString &GetIdentifier() const { return fIdentifier; }
    3941
    40     void SetTime(MTime *t) { fTime = t; }
    41 
    42     MTime *FindTime(MParList &plist);
    43 
    4442    ClassDef(MReport, 1) // Base class for control reports
    4543};
  • trunk/MagicSoft/Mars/mreport/MReportFileRead.cc

    r2529 r2532  
    6969        return kTRUE;
    7070    }
    71     void SetTime(MParList &plist) { fReport->FindTime(plist); }
     71    Bool_t SetupReading(MParList &plist) { return fReport->SetupReading(plist); }
    7272    void AddToList(MParList &plist) { plist.AddToList(fReport); }
    7373};
     
    184184    //    return kFALSE;
    185185
    186     fList->ForEach(MReportHelp, SetTime)(*pList);
     186    TIter Next(fList);
     187    MReportHelp *help=0;
     188    while ((help=(MReportHelp*)Next()))
     189        if (!help->SetupReading(*pList))
     190            return kFALSE;
     191
    187192    fList->ForEach(MReportHelp, AddToList)(*pList);
    188193
Note: See TracChangeset for help on using the changeset viewer.