Changeset 9518 for trunk/MagicSoft/Mars/mbase/MLut.cc
- Timestamp:
- 10/26/09 14:31:19 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbase/MLut.cc
r9462 r9518 38 38 #include <stdlib.h> // atoi (Ubuntu 8.10) 39 39 40 #include <TRegexp.h> 41 40 42 #include "MLog.h" 41 43 #include "MLogManip.h" … … 286 288 Int_t MLut::ReadStream(istream &fin) 287 289 { 290 static const TRegexp reg("[^ 1234567890]"); 291 288 292 Delete(); 293 294 Int_t n = 0; 289 295 290 296 while (1) … … 294 300 if (!fin) 295 301 break; 302 303 n++; 304 305 if (line.Contains(reg)) 306 { 307 gLog << warn << "WARNING - MLut::ReadStream: Line #" << n << " contains invalid character... ignored." << endl; 308 continue; 309 } 296 310 297 311 // Split line by whitespaces
Note:
See TracChangeset
for help on using the changeset viewer.