Changeset 3719 in ntrip


Ignore:
Timestamp:
Feb 23, 2012, 6:50:49 PM (12 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/rinex/rnxobsfile.cpp

    r3718 r3719  
    248248      ttPrev = rnxEpo->tt;
    249249    }
    250     _stream->clear();
    251     _stream->seekg(0, ios::beg);
     250    _stream->seek(0);
    252251    _header.read(_stream);
    253252  }
     
    321320const t_rnxObsFile::t_rnxEpo* t_rnxObsFile::nextEpochV3() {
    322321
    323   while ( _stream->->status() == QTextStream::Ok && !_stream->atEnd() ) {
     322  while ( _stream->status() == QTextStream::Ok && !_stream->atEnd() ) {
    324323
    325324    QString line = _stream->readLine();
     
    356355    for (int iSat = 0; iSat < numSat; iSat++) {
    357356      line = _stream->readLine();
    358       _currEpo.rnxSat[iSat].satSys = line[0];
     357      _currEpo.rnxSat[iSat].satSys = line.toAscii()[0];
    359358      readInt(line, 1, 2, _currEpo.rnxSat[iSat].satNum);
    360       char sys = line[0];
     359      char sys = line.toAscii()[0];
    361360      for (int iType = 0; iType < _header.nTypes(sys); iType++) {
    362361        int pos = 3 + 16*iType;
     
    390389const t_rnxObsFile::t_rnxEpo* t_rnxObsFile::nextEpochV2() {
    391390
    392   while ( _stream->->status() == QTextStream::Ok && !_stream->atEnd() ) {
     391  while ( _stream->status() == QTextStream::Ok && !_stream->atEnd() ) {
    393392
    394393    QString line = _stream->readLine();
     
    436435      }
    437436
    438       _currEpo.rnxSat[iSat].satSys = line[pos];
     437      _currEpo.rnxSat[iSat].satSys = line.toAscii()[pos];
    439438      readInt(line, pos + 1, 2, _currEpo.rnxSat[iSat].satNum);
    440439
Note: See TracChangeset for help on using the changeset viewer.