Changeset 3817 for trunk/MagicSoft/Mars/mreport
- Timestamp:
- 04/23/04 09:29:51 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mreport/MReportRun.cc
r2892 r3817 59 59 Int_t MReportRun::InterpreteBody(TString &str) 60 60 { 61 Int_t len; 62 const Int_t n=sscanf(str.Data(), "%d %n", &fRunNumber, &len); 61 const Int_t pos = str.First(' '); 62 if (pos<0) 63 { 64 *fLog << warn << "WARNING - Token not found." << endl; 65 return kCONTINUE; 66 } 67 const TString tok=str(0, pos); 68 69 str.Remove(0, pos); 70 str = str.Strip(TString::kBoth); 71 72 Int_t len, run; 73 const Int_t n=sscanf(str.Data(), "%d %n", &run, &len); 63 74 if (n!=1) 64 75 { … … 68 79 str.Remove(0, len); 69 80 70 if (str.BeginsWith("END")) 81 if (tok=="START") 82 { 83 if (fRunNumber!=-1) 84 *fLog << warn << "WARNING - RUN-REPORT STOP missing." << endl; 85 fRunNumber = run; 86 } 87 if (tok=="STOP") 88 { 89 if (fRunNumber==-1) 90 *fLog << warn << "WARNING - RUN-REPORT START missing." << endl; 71 91 fRunNumber = -1; 92 } 72 93 73 str.Remove(0, 6);74 str = str.Strip(TString::kBoth);75 94 Ssiz_t pos = str.First(' '); 76 95 if (pos<0)
Note:
See TracChangeset
for help on using the changeset viewer.