Changeset 9770 in ntrip for trunk/BNC/src/bnccore.cpp


Ignore:
Timestamp:
Jun 22, 2022, 3:18:32 PM (22 months ago)
Author:
stuerze
Message:

minor changes to handle RINEX 2,3,4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/bnccore.cpp

    r9768 r9770  
    493493                               const QString& strV2, const QString& strV3,
    494494                               const QString& strV4) {
     495  QString strVx;
     496  if     (_rinexVers == 2) {
     497    strVx = strV2;
     498  }
     499  else if (_rinexVers == 3) {
     500    strVx = strV3;
     501  }
     502  else if (_rinexVers == 4) {
     503    strVx = strV4;
     504  }
    495505
    496506  // Output into file
    497507  // ----------------
    498508  if (printFile && stream) {
    499     if     (_rinexVers == 2) {
    500       *stream << strV2.toLatin1();
    501     }
    502     else if (_rinexVers == 3) {
    503       *stream << strV3.toLatin1();
    504     }
    505     else if (_rinexVers == 4) {
    506       *stream << strV4.toLatin1();
    507     }
     509    *stream << strVx.toLatin1();
    508510    stream->flush();
    509511  }
     
    516518      QTcpSocket* sock = is.next();
    517519      if (sock->state() == QAbstractSocket::ConnectedState) {
    518         if (sock->write(strV3.toLatin1()) == -1) {
     520        if (sock->write(strVx.toLatin1()) == -1) {
    519521          delete sock;
    520522          is.remove();
Note: See TracChangeset for help on using the changeset viewer.