Changeset 10561 in ntrip


Ignore:
Timestamp:
Oct 8, 2024, 12:33:55 PM (2 weeks ago)
Author:
stuerze
Message:

minor changes

Location:
trunk/BNC/src/rinex
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/rinex/reqcanalyze.cpp

    r10548 r10561  
    118118
    119119  if (_log) {
    120     *_log << "QC Format Version  : " << QString("%1").arg(QC_FORMAT_VERSION,3,'f',1)  << '\n' << '\n';
     120    *_log << "QC Format Version  : " << QString("%1").arg(QC_FORMAT_VERSION,3,'f',1)  << Qt::endl << Qt::endl;
    121121  }
    122122
     
    228228  catch (QString str) {
    229229    if (_log) {
    230       *_log << "Exception " << str << '\n';
     230      *_log << "Exception " << str << Qt::endl;
    231231    }
    232232    else {
     
    745745  // Summary
    746746  // -------
    747   *_log << "Observation File   : " << obsFileName                                   << '\n'
    748         << "RINEX Version      : " << QString("%1").arg(obsFile->version(),4,'f',2) << '\n'
    749         << "Marker Name        : " << _qcFile._markerName                           << '\n'
    750         << "Marker Number      : " << obsFile->markerNumber()                       << '\n'
    751         << "Receiver           : " << _qcFile._receiverType                         << '\n'
    752         << "Antenna            : " << _qcFile._antennaName                          << '\n'
     747  *_log << "Observation File   : " << obsFileName                                   << Qt::endl
     748        << "RINEX Version      : " << QString("%1").arg(obsFile->version(),4,'f',2) << Qt::endl
     749        << "Marker Name        : " << _qcFile._markerName                           << Qt::endl
     750        << "Marker Number      : " << obsFile->markerNumber()                       << Qt::endl
     751        << "Receiver           : " << _qcFile._receiverType                         << Qt::endl
     752        << "Antenna            : " << _qcFile._antennaName                          << Qt::endl
    753753        << "Position XYZ       : " << QString("%1 %2 %3").arg(obsFile->xyz()(1), 14, 'f', 4)
    754754                                                        .arg(obsFile->xyz()(2), 14, 'f', 4)
    755                                                         .arg(obsFile->xyz()(3), 14, 'f', 4) << '\n'
     755                                                        .arg(obsFile->xyz()(3), 14, 'f', 4) << Qt::endl
    756756        << "Antenna dH/dE/dN   : " << QString("%1 %2 %3").arg(obsFile->antNEU()(3), 8, 'f', 4)
    757757                                                        .arg(obsFile->antNEU()(2), 8, 'f', 4)
    758                                                         .arg(obsFile->antNEU()(1), 8, 'f', 4) << '\n'
     758                                                        .arg(obsFile->antNEU()(1), 8, 'f', 4) << Qt::endl
    759759        << "Start Time         : " << _qcFile._startTime.datestr().c_str()         << ' '
    760                                    << _qcFile._startTime.timestr(1,'.').c_str()    << '\n'
     760                                   << _qcFile._startTime.timestr(1,'.').c_str()    << Qt::endl
    761761        << "End Time           : " << _qcFile._endTime.datestr().c_str()           << ' '
    762                                    << _qcFile._endTime.timestr(1,'.').c_str()      << '\n'
    763         << "Interval           : " << _qcFile._interval << " sec"                  << '\n';
     762                                   << _qcFile._endTime.timestr(1,'.').c_str()      << Qt::endl
     763        << "Interval           : " << _qcFile._interval << " sec"                  << Qt::endl;
    764764
    765765
     
    774774        *_log << " " << type;
    775775      }
    776       *_log << '\n';
     776      *_log << Qt::endl;
    777777    }
    778778  }
     
    794794    *_log << ' ' << itSys.key();
    795795  }
    796   *_log << '\n';
     796  *_log << Qt::endl;
    797797
    798798
     
    822822      }
    823823    }
    824     *_log << '\n'
    825           << prefixSys << "Satellites: " << qcSatVec.size() << '\n'
     824    *_log << Qt::endl
     825          << prefixSys << "Satellites: " << qcSatVec.size() << Qt::endl
    826826          << prefixSys << "Signals   : " << frqMap.size() << "   ";
    827827    QMapIterator<QString, QVector<const t_qcFrqSum*> > itFrq(frqMap);
     
    831831      *_log << ' ' << frqType;
    832832    }
    833     *_log << '\n';
     833    *_log << Qt::endl;
    834834    QString prefixSys2 = "    " + prefixSys;
    835835    itFrq.toFront();
     
    867867      double ratio = (double(numObs) / double(numExpectedObs)) * 100.0;
    868868
    869       *_log << '\n'
     869      *_log << Qt::endl
    870870            << prefixSys2 << prefixFrq << "Observations      : ";
    871871      if(_navFileNames.isEmpty() || numExpectedObs == 0.0  || _navFileIncomplete.contains(sys.toLatin1())) {
     
    889889    return;
    890890  }
    891   *_log << '\n';
     891  *_log << Qt::endl;
    892892  for (int iEpo = 0; iEpo < _qcFile._qcEpo.size(); iEpo++) {
    893893    const t_qcEpo& qcEpo = _qcFile._qcEpo[iEpo];
     
    909909    *_log << dateStr << QString(" %1").arg(qcEpo._qcSat.size(), 2)
    910910          << QString(" %1").arg(qcEpo._PDOP, 4, 'f', 1)
    911           << '\n';
     911          << Qt::endl;
    912912
    913913    QMapIterator<t_prn, t_qcSat> itSat(qcEpo._qcSat);
     
    961961        }
    962962      }
    963       *_log << '\n';
     963      *_log << Qt::endl;
    964964    }
    965965  }
     
    985985  }
    986986  if (_log) {
    987     *_log << "Navigation File(s) : " << navFileName  << '\n';
     987    *_log << "Navigation File(s) : " << navFileName  << Qt::endl;
    988988  }
    989989  QStringListIterator it(_navFileNames);
     
    10241024        }
    10251025      }
    1026       *_log << '\n';
     1026      *_log << Qt::endl;
    10271027    }
    10281028  }
  • trunk/BNC/src/rinex/reqcedit.cpp

    r10548 r10561  
    108108  // ---------------
    109109  if (_log) {
    110     *_log << QByteArray(78, '-') << '\n';
     110    *_log << QByteArray(78, '-') << Qt::endl;
    111111    *_log << "RINEX File Editing\n";
    112     *_log << QByteArray(78, '-') << '\n';
     112    *_log << QByteArray(78, '-') << Qt::endl;
    113113
    114114    *_log << QByteArray("Program").leftJustified(15) << ": "
    115           << BNC_CORE->pgmName() << '\n';
     115          << BNC_CORE->pgmName() << Qt::endl;
    116116    *_log << QByteArray("Run by").leftJustified(15) << ": "
    117           << BNC_CORE->userName() << '\n';
     117          << BNC_CORE->userName() << Qt::endl;
    118118    *_log << QByteArray("Date").leftJustified(15) << ": "
    119           << QDateTime::currentDateTime().toUTC().toString("yyyy-MM-dd hh:mm:ss") << '\n';
     119          << QDateTime::currentDateTime().toUTC().toString("yyyy-MM-dd hh:mm:ss") << Qt::endl;
    120120    *_log << QByteArray("RINEX Version").leftJustified(15) << ": "
    121           << _rnxVersion << '\n';
     121          << _rnxVersion << Qt::endl;
    122122    *_log << QByteArray("Sampling").leftJustified(15) << ": "
    123           << _samplingRate << " sec" << '\n';
     123          << _samplingRate << " sec" << Qt::endl;
    124124    *_log << QByteArray("Start time").leftJustified(15) << ": "
    125125          << _begTime.datestr().c_str() << ' '
    126           << _begTime.timestr(0).c_str() << '\n';
     126          << _begTime.timestr(0).c_str() << Qt::endl;
    127127    *_log << QByteArray("End time").leftJustified(15) << ": "
    128128          << _endTime.datestr().c_str() << ' '
    129           << _endTime.timestr(0).c_str() << '\n';
     129          << _endTime.timestr(0).c_str() << Qt::endl;
    130130    *_log << QByteArray("Input Obs Files").leftJustified(15) << ": "
    131           << _obsFileNames.join(",") << '\n';
     131          << _obsFileNames.join(",") << Qt::endl;
    132132    *_log << QByteArray("Input Nav Files").leftJustified(15) << ": "
    133           << _navFileNames.join(",") << '\n';
     133          << _navFileNames.join(",") << Qt::endl;
    134134    *_log << QByteArray("Output Obs File").leftJustified(15) << ": "
    135           << _outObsFileName << '\n';
     135          << _outObsFileName << Qt::endl;
    136136    *_log << QByteArray("Output Nav File").leftJustified(15) << ": "
    137           << _outNavFileName << '\n';
    138 
    139     *_log << QByteArray(78, '-') << '\n';
     137          << _outNavFileName << Qt::endl;
     138
     139    *_log << QByteArray(78, '-') << Qt::endl;
    140140    _log->flush();
    141141  }
     
    186186          delete rnxObsFile;
    187187          if (log) {
    188             *log << "Error in rnxObsFile " << filePath.toLatin1().data() << '\n';
     188            *log << "Error in rnxObsFile " << filePath.toLatin1().data() << Qt::endl;
    189189          }
    190190        }
     
    199199      catch (...) {
    200200        if (log) {
    201           *log << "Error in rnxObsFile " << fileName.toLatin1().data() << '\n';
     201          *log << "Error in rnxObsFile " << fileName.toLatin1().data() << Qt::endl;
    202202        }
    203203      }
     
    318318      *_log << "Processing File: " << obsFile->fileName() << "  start: "
    319319            << obsFile->startTime().datestr().c_str() << ' '
    320             << obsFile->startTime().timestr(0).c_str() << '\n';
     320            << obsFile->startTime().timestr(0).c_str() << Qt::endl;
    321321    }
    322322    if (ii == 0) {
     
    367367    catch (QString str) {
    368368      if (_log) {
    369         *_log << "Exception " << str << '\n';
     369        *_log << "Exception " << str << Qt::endl;
    370370      }
    371371      else {
     
    376376    catch (...) {
    377377      if (_log) {
    378         *_log << "Exception unknown" << '\n';
     378        *_log << "Exception unknown" << Qt::endl;
    379379      }
    380380      else {
  • trunk/BNC/src/rinex/rnxobsfile.cpp

    r10548 r10561  
    14091409    const t_rnxSat& rnxSat = epo->rnxSat[iSat];
    14101410    if (iSat > 0 && iSat % 12 == 0) {
    1411       *stream << '\n' << QString().leftJustified(32);
     1411      *stream << Qt::endl << QString().leftJustified(32);
    14121412    }
    14131413    *stream << rnxSat.prn.toString().c_str();
    14141414  }
    1415   *stream << '\n';
     1415  *stream << Qt::endl;
    14161416
    14171417  for (unsigned iSat = 0; iSat < epo->rnxSat.size(); iSat++) {
     
    14201420    for (int iTypeV2 = 0; iTypeV2 < header.nTypes(sys); iTypeV2++) {
    14211421      if (iTypeV2 > 0 && iTypeV2 % 5 == 0) {
    1422         *stream << '\n';
     1422        *stream << Qt::endl;
    14231423      }
    14241424      QString typeV2 = header.obsType(sys, iTypeV2);
     
    14761476      }
    14771477    }
    1478     *stream << '\n';
     1478    *stream << Qt::endl;
    14791479  }
    14801480}
     
    15591559        }
    15601560      }
    1561       *stream << '\n';
     1561      *stream << Qt::endl;
    15621562    }
    15631563  }
Note: See TracChangeset for help on using the changeset viewer.