Changeset 6354 in ntrip


Ignore:
Timestamp:
Nov 26, 2014, 7:25:36 PM (10 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC/src
Files:
2 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    }
  • trunk/BNC/src/orbComp/sp3Comp.cpp

    r6353 r6354  
    227227        if (epochOK) {
    228228          epochs.push_back(epo);
    229           cout << "OK: " << string(epo->_tt) << endl;
    230229        }
    231230        else {
     
    236235    }
    237236  }
    238 
    239   cout << "NUMEPO: " << epochs.size() << endl;
    240237
    241238  // Transform xyz into radial, along-track, and out-of-plane
Note: See TracChangeset for help on using the changeset viewer.