Changeset 6456 in ntrip


Ignore:
Timestamp:
Dec 27, 2014, 4:05:52 PM (9 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/RTCM3/RTCM3coDecoder.cpp

    r6455 r6456  
    363363    if (itOrb.key() < _lastTime) {
    364364      emit newOrbCorrections(itOrb.value());
    365       if (_out) {
    366         t_orbCorr::writeEpoch(_out, itOrb.value());
    367       }
     365      t_orbCorr::writeEpoch(_out, itOrb.value());
    368366      itOrb.remove();
    369367    }
     
    374372    if (itClk.key() < _lastTime) {
    375373      emit newClkCorrections(itClk.value());
    376       if (_out) {
    377         t_clkCorr::writeEpoch(_out, itClk.value());
    378       }
     374      t_clkCorr::writeEpoch(_out, itClk.value());
    379375      itClk.remove();
    380376    }
    381   }
    382 
    383   if (_out) {
    384     _out->flush();
    385377  }
    386378}
  • trunk/BNC/src/satObs.cpp

    r6455 r6456  
    2222////////////////////////////////////////////////////////////////////////////
    2323void t_clkCorr::writeEpoch(std::ostream* out, const QList<t_clkCorr>& corrList) {
     24  if (!out || corrList.size() == 0) {
     25    return;
     26  }
    2427  *out << "CLOCK CORRECTIONS: " << corrList.size() << endl;
     28
     29  out->flush();
    2530}
    2631
     
    4449////////////////////////////////////////////////////////////////////////////
    4550void t_orbCorr::writeEpoch(std::ostream* out, const QList<t_orbCorr>& corrList) {
     51  if (!out || corrList.size() == 0) {
     52    return;
     53  }
    4654  *out << "ORB CORRECTIONS: " << corrList.size() << endl;
     55
     56  out->flush();
    4757}
    4858
Note: See TracChangeset for help on using the changeset viewer.