Changeset 2912 in ntrip


Ignore:
Timestamp:
Jan 27, 2011, 3:48:47 PM (13 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncephuser.cpp

    r2911 r2912  
    152152//
    153153////////////////////////////////////////////////////////////////////////////
    154 void t_corr::readLine(const QString& line) {
     154t_irc t_corr::readLine(const QString& line) {
     155
     156  if (line[0] == '!') {
     157    return failure;
     158  }
    155159
    156160  QTextStream in(line.toAscii());
    157161
    158162  int     messageType;
     163  in >> messageType;
     164
     165  if (!relevantMessageType(messageType)) {
     166    return failure;
     167  }
     168
    159169  int     updateInterval;
    160170  int     GPSweek;
    161171  double  GPSweeks;
    162172  QString prn;
    163 
    164   in >> messageType >> updateInterval >> GPSweek >> GPSweeks >> prn;
     173  in >> updateInterval >> GPSweek >> GPSweeks >> prn;
    165174
    166175  tt.set(GPSweek, GPSweeks);
     
    207216    dClkSet = true;
    208217  }
    209 }
     218
     219  return success;
     220}
  • trunk/BNC/bncephuser.h

    r2911 r2912  
    5454  }
    5555
    56   void readLine(const QString& line);
     56  t_irc readLine(const QString& line);
    5757
    5858  bncTime      tt;
Note: See TracChangeset for help on using the changeset viewer.