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


Ignore:
Timestamp:
Jun 9, 2008, 4:31:49 PM (16 years ago)
Author:
mervart
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncapp.cpp

    r942 r943  
    449449  allLines += line;
    450450
    451   printOutput(printFile, lineV2, lineV3, allLines);
     451  printOutput(printFile, _ephStreamGPS, lineV2, lineV3, allLines);
    452452}
    453453
     
    497497  allLines += line;
    498498
    499   printOutput(printFile, lineV2, lineV3, allLines);
     499  printOutput(printFile, _ephStreamGlonass, lineV2, lineV3, allLines);
    500500}
    501501
    502502// Output
    503503////////////////////////////////////////////////////////////////////////////
    504 void bncApp::printOutput(bool printFile, const QString& lineV2,
     504void bncApp::printOutput(bool printFile, QTextStream* stream,
     505                         const QString& lineV2,
    505506                         const QString& lineV3,
    506507                         const QByteArray& allLines) {
    507508  // Output into file
    508509  // ----------------
    509   if (printFile && _ephStreamGPS) {
     510  if (printFile && stream) {
    510511    if (_rinexVers == 2) {
    511       *_ephStreamGPS << lineV2.toAscii();
     512      *stream << lineV2.toAscii();
    512513    }
    513514    else {
    514       *_ephStreamGPS << lineV3.toAscii();
    515     }
    516     *_ephStreamGPS << allLines;
    517     _ephStreamGPS->flush();
     515      *stream << lineV3.toAscii();
     516    }
     517    *stream << allLines;
     518    stream->flush();
    518519  }
    519520
Note: See TracChangeset for help on using the changeset viewer.