Changeset 3683 in ntrip


Ignore:
Timestamp:
Feb 12, 2012, 12:19:45 PM (12 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncpostprocess.cpp

    r3681 r3683  
    100100  // ----------------
    101101  t_eph* eph = 0;
    102   while (_rnxNavFile->getNextEph(eph) == success) {
     102  while ( (eph = _rnxNavFile->getNextEph()) != 0 ) {
    103103    if (_pppClient->putNewEph(eph) != success) {
    104104      delete eph; eph = 0;
     
    109109  // -----------------
    110110  const t_rnxObsFile::t_epo* epo = 0;
    111   while ( (epo = _rnxObsFile->nextEpoch()) != 0) {
     111  while ( (epo = _rnxObsFile->nextEpoch()) != 0 ) {
    112112    for (int iObs = 0; iObs < epo->satObs.size(); iObs++) {
    113113      const t_rnxObsFile::t_satObs& satObs = epo->satObs[iObs];
  • trunk/BNC/rnxnavfile.cpp

    r3682 r3683  
    104104// Read Next Ephemeris
    105105////////////////////////////////////////////////////////////////////////////
    106 t_irc t_rnxNavFile::getNextEph(t_eph* eph) {
     106t_eph* t_rnxNavFile::getNextEph() {
    107107
    108   eph = 0;
     108  t_eph* eph = 0;
    109109
    110110  while (_stream->status() == QTextStream::Ok && !_stream->atEnd()) {
     
    146146    }
    147147    if (eph && eph->ok()) {
    148       return success;
     148      return eph;
    149149    }
    150150  }
    151151
    152152  delete eph;
    153   eph = 0;
    154   return failure;
     153  return 0;
    155154}
  • trunk/BNC/rnxnavfile.h

    r3659 r3683  
    5050  t_rnxNavFile(QString fileName);
    5151  ~t_rnxNavFile();
    52   t_irc getNextEph(t_eph* eph);
     52  t_eph* getNextEph();
    5353  float version() const {return _header.version();}
    5454  bool  glonass() const {return _header.glonass();}
Note: See TracChangeset for help on using the changeset viewer.