Changeset 600 in ntrip for trunk/BNC/bncapp.cpp


Ignore:
Timestamp:
Dec 14, 2007, 11:12:41 AM (16 years ago)
Author:
mervart
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncapp.cpp

    r594 r600  
    178178    delete *ee;
    179179    *ee = gpseph;
    180     printGPSEph(gpseph);
     180    printGPSEph(gpseph, true);
    181181  }
    182182  else {
     183    printGPSEph(gpseph, false);
    183184    delete gpseph;
    184185  }
     
    216217    delete *ee;
    217218    *ee = glonasseph;
    218     printGlonassEph(glonasseph);
     219    printGlonassEph(glonasseph, true);
    219220  }
    220221  else {
     222    printGlonassEph(glonasseph, false);
    221223    delete glonasseph;
    222224  }
     
    453455// Print One GPS Ephemeris
    454456////////////////////////////////////////////////////////////////////////////
    455 void bncApp::printGPSEph(gpsephemeris* ep) {
     457void bncApp::printGPSEph(gpsephemeris* ep, bool printFile) {
    456458
    457459  QString line;
     
    513515  // Output into file
    514516  // ----------------
    515   if (_ephStreamGPS) {
     517  if (printFile && _ephStreamGPS) {
    516518    *_ephStreamGPS << allLines;
    517519    _ephStreamGPS->flush();
     
    533535// Print One Glonass Ephemeris
    534536////////////////////////////////////////////////////////////////////////////
    535 void bncApp::printGlonassEph(glonassephemeris* ep) {
     537void bncApp::printGlonassEph(glonassephemeris* ep, bool printFile) {
    536538
    537539  QString line;
     
    579581  // Output into file
    580582  // ----------------
    581   if (_ephStreamGlonass) {
     583  if (printFile && _ephStreamGlonass) {
    582584    *_ephStreamGlonass << allLines;
    583585    _ephStreamGlonass->flush();
Note: See TracChangeset for help on using the changeset viewer.