Changeset 9587 in ntrip


Ignore:
Timestamp:
Jan 7, 2022, 12:49:21 PM (3 years ago)
Author:
stuerze
Message:

minor changes

Location:
trunk/BNC/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/bncantex.h

    r9481 r9587  
    2727
    2828#include <QtCore>
     29#include <QString>
    2930#include <string>
    3031#include <newmat.h>
  • trunk/BNC/src/bnccore.cpp

    r9571 r9587  
    4242#include <sstream>
    4343#include <QMessageBox>
     44//#include <QString>
    4445#include <cmath>
    4546
     
    186187    QByteArray msgLocal = msg;
    187188    if (msg.indexOf('\n') == 0) {
    188       *_logStream << endl;
     189      *_logStream << Qt::endl;
    189190      msgLocal = msg.mid(1);
    190191    }
    191192    *_logStream << currentDateAndTimeGPS().toString("yy-MM-dd hh:mm:ss ").toLatin1().data();
    192     *_logStream << msgLocal.data() << endl;
     193    *_logStream << msgLocal.data() << Qt::endl;
    193194    _logStream->flush();
    194195    _logFile->flush();
     
    391392      if ( ! (appendFlagGPS & QIODevice::Append)) {
    392393        QString line;
    393         line.sprintf(
     394        line.asprintf(
    394395          "%9.2f%11sN: GNSS NAV DATA    M: Mixed%12sRINEX VERSION / TYPE\n",
    395396          defaultRnxNavVersion3, "", "");
     
    400401                       << _userName.toLatin1().data()
    401402                       << hlp.toLatin1().data()
    402                        << "PGM / RUN BY / DATE" << endl;
     403                       << "PGM / RUN BY / DATE" << Qt::endl;
    403404
    404405        QStringListIterator it(comments);
     
    407408        }
    408409
    409         line.sprintf("%60sEND OF HEADER\n", "");
     410        line.asprintf("%60sEND OF HEADER\n", "");
    410411        *_ephStreamGPS << line;
    411412
     
    419420      if (! (appendFlagGPS & QIODevice::Append)) {
    420421        QString line;
    421         line.sprintf("%9.2f%11sN: GPS NAV DATA%25sRINEX VERSION / TYPE\n",
     422        line.asprintf("%9.2f%11sN: GPS NAV DATA%25sRINEX VERSION / TYPE\n",
    422423                     defaultRnxNavVersion2, "", "");
    423424        *_ephStreamGPS << line;
     
    427428                       << _userName.toLatin1().data()
    428429                       << hlp.toLatin1().data()
    429                        << "PGM / RUN BY / DATE" << endl;
     430                       << "PGM / RUN BY / DATE" << Qt::endl;
    430431
    431432        QStringListIterator it(comments);
     
    434435        }
    435436
    436         line.sprintf("%60sEND OF HEADER\n", "");
     437        line.asprintf("%60sEND OF HEADER\n", "");
    437438        *_ephStreamGPS << line;
    438439
     
    449450                           << _userName.toLatin1().data()
    450451                           << hlp.toLatin1().data()
    451                            << "PGM / RUN BY / DATE" << endl;
     452                           << "PGM / RUN BY / DATE" << Qt::endl;
    452453
    453454        QStringListIterator it(comments);
  • trunk/BNC/src/orbComp/sp3Comp.cpp

    r9178 r9587  
    8484  }
    8585  if (!_log) {
    86     *_log  << "ERROR: SP3Comp requires logfile specification" << endl;
     86    *_log  << "ERROR: SP3Comp requires logfile specification" << Qt::endl;
    8787    goto exit;
    8888  }
    8989
    9090  for (int ii = 0; ii < _sp3FileNames.size(); ii++) {
    91     *_log << "! SP3 File " << ii+1 << ": " << _sp3FileNames[ii] << endl;
     91    *_log << "! SP3 File " << ii+1 << ": " << _sp3FileNames[ii] << Qt::endl;
    9292  }
    9393  if (_sp3FileNames.size() != 2) {
    94     *_log << "ERROR: sp3Comp requires two input SP3 files" << endl;
     94    *_log << "ERROR: sp3Comp requires two input SP3 files" << Qt::endl;
    9595    goto end;
    9696  }
     
    102102  }
    103103  catch (const string& error) {
    104     *_log << "ERROR: " << error.c_str() << endl;
     104    *_log << "ERROR: " << error.c_str() << Qt::endl;
    105105  }
    106106  catch (const char* error) {
    107     *_log << "ERROR: " << error << endl;
     107    *_log << "ERROR: " << error << Qt::endl;
    108108  }
    109109  catch (Exception& exc) {
    110     *_log << "ERROR: " << exc.what() << endl;
     110    *_log << "ERROR: " << exc.what() << Qt::endl;
    111111  }
    112112  catch (std::exception& exc) {
    113     *_log << "ERROR: " << exc.what() << endl;
     113    *_log << "ERROR: " << exc.what() << Qt::endl;
    114114  }
    115115  catch (QString error) {
    116     *_log << "ERROR: " << error << endl;
     116    *_log << "ERROR: " << error << Qt::endl;
    117117  }
    118118  catch (...) {
    119     *_log << "ERROR: " << "unknown exception" << endl;
     119    *_log << "ERROR: " << "unknown exception" << Qt::endl;
    120120  }
    121121
  • trunk/BNC/src/pppOptions.h

    r9561 r9587  
    3131      << "IF PPP"
    3232      << "Uncombined PPP"
    33       << "PPP-RTK"
    3433      << "DCM with Code Biases"
    3534      << "DCM with Phase Biases";
Note: See TracChangeset for help on using the changeset viewer.