- Timestamp:
- Dec 14, 2007, 11:12:41 AM (17 years ago)
- Location:
- trunk/BNC
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncapp.cpp
r594 r600 178 178 delete *ee; 179 179 *ee = gpseph; 180 printGPSEph(gpseph );180 printGPSEph(gpseph, true); 181 181 } 182 182 else { 183 printGPSEph(gpseph, false); 183 184 delete gpseph; 184 185 } … … 216 217 delete *ee; 217 218 *ee = glonasseph; 218 printGlonassEph(glonasseph );219 printGlonassEph(glonasseph, true); 219 220 } 220 221 else { 222 printGlonassEph(glonasseph, false); 221 223 delete glonasseph; 222 224 } … … 453 455 // Print One GPS Ephemeris 454 456 //////////////////////////////////////////////////////////////////////////// 455 void bncApp::printGPSEph(gpsephemeris* ep ) {457 void bncApp::printGPSEph(gpsephemeris* ep, bool printFile) { 456 458 457 459 QString line; … … 513 515 // Output into file 514 516 // ---------------- 515 if ( _ephStreamGPS) {517 if (printFile && _ephStreamGPS) { 516 518 *_ephStreamGPS << allLines; 517 519 _ephStreamGPS->flush(); … … 533 535 // Print One Glonass Ephemeris 534 536 //////////////////////////////////////////////////////////////////////////// 535 void bncApp::printGlonassEph(glonassephemeris* ep ) {537 void bncApp::printGlonassEph(glonassephemeris* ep, bool printFile) { 536 538 537 539 QString line; … … 579 581 // Output into file 580 582 // ---------------- 581 if ( _ephStreamGlonass) {583 if (printFile && _ephStreamGlonass) { 582 584 *_ephStreamGlonass << allLines; 583 585 _ephStreamGlonass->flush(); -
trunk/BNC/bncapp.h
r592 r600 48 48 private: 49 49 void printEphHeader(); 50 void printGPSEph(gpsephemeris* ep );51 void printGlonassEph(glonassephemeris* ep );50 void printGPSEph(gpsephemeris* ep, bool printFile); 51 void printGlonassEph(glonassephemeris* ep, bool printFile); 52 52 53 53 QFile* _logFile;
Note:
See TracChangeset
for help on using the changeset viewer.