Changeset 6354 in ntrip for trunk/BNC/src/bncsp3.cpp
- Timestamp:
- Nov 26, 2014, 7:25:36 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bncsp3.cpp
r6351 r6354 165 165 delete _prevEpoch; _prevEpoch = _currEpoch; _currEpoch = 0; 166 166 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 167 176 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 178 177 getline(_stream, _lastLine); 179 178 if (_stream.eof() || _lastLine.find("EOF") == 0) { 180 delete _currEpoch; _currEpoch = 0;181 179 break; 182 180 }
Note:
See TracChangeset
for help on using the changeset viewer.