Changeset 3707 in ntrip


Ignore:
Timestamp:
Feb 16, 2012, 4:15:01 PM (12 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/rnxobsfile.cpp

    r3706 r3707  
    103103    }
    104104    else if (key == "SYS / # / OBS TYPES") {
    105       QTextStream in(value.toAscii(), QIODevice::ReadOnly);
     105      QTextStream* in = new QTextStream(value.toAscii(), QIODevice::ReadOnly);
    106106      char sys;
    107107      int nTypes;
    108       in >> sys >> nTypes;
     108      *in >> sys >> nTypes;
    109109      for (int ii = 0; ii < nTypes; ii++) {
     110        if (ii > 0 && ii % 13 == 0) {
     111          line = stream->readLine();
     112          delete in;
     113          in = new QTextStream(line.toAscii(), QIODevice::ReadOnly);
     114        }
    110115        QString hlp;
    111         in >> hlp;
     116        *in >> hlp;
    112117        _obsTypesV3[sys] << hlp;
    113118      }
     119      delete in;
    114120    }
    115121  }
  • trunk/BNC/rnxobsfile.h

    r3704 r3707  
    4848      else {
    4949        if (_obsTypesV3.find(sys) != _obsTypesV3.end()) {
    50           return _obsTypesV3.size();
     50          return _obsTypesV3[sys].size();
    5151        }
    5252        else {
Note: See TracChangeset for help on using the changeset viewer.