Ignore:
Timestamp:
10/26/09 14:31:19 (15 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mbase/MLut.cc

    r9462 r9518  
    3838#include <stdlib.h>  // atoi (Ubuntu 8.10)
    3939
     40#include <TRegexp.h>
     41
    4042#include "MLog.h"
    4143#include "MLogManip.h"
     
    286288Int_t MLut::ReadStream(istream &fin)
    287289{
     290    static const TRegexp reg("[^ 1234567890]");
     291
    288292    Delete();
     293
     294    Int_t n = 0;
    289295
    290296    while (1)
     
    294300        if (!fin)
    295301            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        }
    296310
    297311        // Split line by whitespaces
Note: See TracChangeset for help on using the changeset viewer.