Changeset 6354 in ntrip for trunk/BNC/src/bncsp3.cpp


Ignore:
Timestamp:
Nov 26, 2014, 7:25:36 PM (9 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/bncsp3.cpp

    r6351 r6354  
    165165  delete _prevEpoch; _prevEpoch = _currEpoch; _currEpoch = 0;
    166166
     167  if (_lastLine[0] == '*') {
     168    _currEpoch = new t_sp3Epoch();
     169    istringstream in(_lastLine.substr(1).c_str());
     170    int    YY, MM, DD, hh, mm;
     171    double ss;
     172    in >> YY >> MM >> DD >> hh >> mm >> ss;
     173    _currEpoch->_tt.set(YY, MM, DD, hh, mm, ss);
     174  }
     175
    167176  while (true) {
    168 
    169     if (!_currEpoch) {
    170       _currEpoch = new t_sp3Epoch();
    171       istringstream in(_lastLine.substr(1).c_str());
    172       int    YY, MM, DD, hh, mm;
    173       double ss;
    174       in >> YY >> MM >> DD >> hh >> mm >> ss;
    175       _currEpoch->_tt.set(YY, MM, DD, hh, mm, ss);
    176     }
    177 
    178177    getline(_stream, _lastLine);
    179178    if (_stream.eof() || _lastLine.find("EOF") == 0) {
    180       delete _currEpoch; _currEpoch = 0;
    181179      break;
    182180    }
Note: See TracChangeset for help on using the changeset viewer.