Changeset 9141 for trunk/MagicSoft/Mars/mreport
- Timestamp:
- 10/13/08 15:54:30 (16 years ago)
- Location:
- trunk/MagicSoft/Mars/mreport
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mreport/MReport.cc
r8955 r9141 167 167 // 200510250 | 53813.5 | | 200603190 168 168 // 200604010 | 53863.5 | | 200605080 169 // 200605190 | 54711.5 | | 200809030 169 170 // 170 171 Int_t MReport::Interprete(TString &str, const MTime &start, const MTime &stop, Int_t ver) … … 200 201 ver=200605080; 201 202 203 if (ver==200605190 && GetMjd()>54711.5) 204 ver=200809030; 205 202 206 // Interprete body (contents) of report 203 207 const Int_t rc = InterpreteBody(str, ver); -
trunk/MagicSoft/Mars/mreport/MReportCC.cc
r8963 r9141 114 114 if (n!=6) 115 115 { 116 cout << n << endl;117 116 *fLog << warn << "WARNING - Wrong number of arguments (should be 6)." << endl; 118 117 return kFALSE; … … 120 119 121 120 str.Remove(0, len); 121 122 if (ver>=200809030) 123 { 124 if (!CheckTag(str, "SCHEDULE ")) 125 return kFALSE; 126 127 str = str.Strip(TString::kBoth); 128 129 // [Sourcename] sourcecategory 130 const Ssiz_t pos1 = str.First(' '); 131 if (pos1<0) 132 { 133 *fLog << warn << "WARNING - Wrong number of arguments (should be 1 or 2)." << endl; 134 return kFALSE; 135 } 136 137 const TString str1 = str(0, pos1); 138 139 str.Remove(0, pos1); 140 str = str.Strip(TString::kBoth); 141 142 if (!str1.IsDigit()) 143 { 144 const Ssiz_t pos2 = str.First(' '); 145 if (pos2<0) 146 { 147 *fLog << warn << "WARNING - Wrong number of arguments (should be 1 or 2)." << endl; 148 return kFALSE; 149 } 150 151 const TString str2 = str(0, pos2); 152 153 str.Remove(0, pos2); 154 155 if (!str2.IsDigit()) 156 { 157 *fLog << warn << "WARNING - Wrong type of second argument." << endl; 158 return kFALSE; 159 } 160 } 161 } 122 162 123 163 return kTRUE;
Note:
See TracChangeset
for help on using the changeset viewer.