Changeset 2532 for trunk/MagicSoft/Mars/mreport
- Timestamp:
- 11/19/03 18:47:36 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/mreport
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mreport/MReport.cc
r2529 r2532 84 84 } 85 85 86 MTime *MReport::FindTime(MParList &plist)86 Bool_t MReport::SetupReading(MParList &plist) 87 87 { 88 88 fTime = NULL; … … 93 93 *fLog << warn << " WARNING - Class name '" << id << "' "; 94 94 *fLog << " doesn't begin with 'MReport'... no MTime assigned." << endl; 95 return NULL;95 return kFALSE; 96 96 } 97 97 … … 100 100 { 101 101 *fLog << warn << " WARNING - No postfix existing... no MTime assigned." << endl; 102 return NULL;102 return kFALSE; 103 103 } 104 104 … … 106 106 107 107 fTime = (MTime*)plist.FindCreateObj("MTime", id); 108 return fTime; 108 if (!fTime) 109 return kFALSE; 110 111 return kTRUE; 109 112 } -
trunk/MagicSoft/Mars/mreport/MReport.h
r2529 r2532 23 23 MReport(const char *id) : fIdentifier(id), fState(0xff), fTime(0) { } 24 24 25 virtual Bool_t SetupReading(MParList &plist); 25 26 virtual Bool_t InterpreteBody(TString &str); 27 26 28 Bool_t Interprete(TString &str); 27 29 Bool_t CheckIdentifier(TString &str) const … … 38 40 const TString &GetIdentifier() const { return fIdentifier; } 39 41 40 void SetTime(MTime *t) { fTime = t; }41 42 MTime *FindTime(MParList &plist);43 44 42 ClassDef(MReport, 1) // Base class for control reports 45 43 }; -
trunk/MagicSoft/Mars/mreport/MReportFileRead.cc
r2529 r2532 69 69 return kTRUE; 70 70 } 71 void SetTime(MParList &plist) { fReport->FindTime(plist); }71 Bool_t SetupReading(MParList &plist) { return fReport->SetupReading(plist); } 72 72 void AddToList(MParList &plist) { plist.AddToList(fReport); } 73 73 }; … … 184 184 // return kFALSE; 185 185 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 187 192 fList->ForEach(MReportHelp, AddToList)(*pList); 188 193
Note:
See TracChangeset
for help on using the changeset viewer.