Changeset 10561 in ntrip
- Timestamp:
- Oct 8, 2024, 12:33:55 PM (5 weeks ago)
- Location:
- trunk/BNC/src/rinex
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/rinex/reqcanalyze.cpp
r10548 r10561 118 118 119 119 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; 121 121 } 122 122 … … 228 228 catch (QString str) { 229 229 if (_log) { 230 *_log << "Exception " << str << '\n';230 *_log << "Exception " << str << Qt::endl; 231 231 } 232 232 else { … … 745 745 // Summary 746 746 // ------- 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 753 753 << "Position XYZ : " << QString("%1 %2 %3").arg(obsFile->xyz()(1), 14, 'f', 4) 754 754 .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 756 756 << "Antenna dH/dE/dN : " << QString("%1 %2 %3").arg(obsFile->antNEU()(3), 8, 'f', 4) 757 757 .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 759 759 << "Start Time : " << _qcFile._startTime.datestr().c_str() << ' ' 760 << _qcFile._startTime.timestr(1,'.').c_str() << '\n'760 << _qcFile._startTime.timestr(1,'.').c_str() << Qt::endl 761 761 << "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; 764 764 765 765 … … 774 774 *_log << " " << type; 775 775 } 776 *_log << '\n';776 *_log << Qt::endl; 777 777 } 778 778 } … … 794 794 *_log << ' ' << itSys.key(); 795 795 } 796 *_log << '\n';796 *_log << Qt::endl; 797 797 798 798 … … 822 822 } 823 823 } 824 *_log << '\n'825 << prefixSys << "Satellites: " << qcSatVec.size() << '\n'824 *_log << Qt::endl 825 << prefixSys << "Satellites: " << qcSatVec.size() << Qt::endl 826 826 << prefixSys << "Signals : " << frqMap.size() << " "; 827 827 QMapIterator<QString, QVector<const t_qcFrqSum*> > itFrq(frqMap); … … 831 831 *_log << ' ' << frqType; 832 832 } 833 *_log << '\n';833 *_log << Qt::endl; 834 834 QString prefixSys2 = " " + prefixSys; 835 835 itFrq.toFront(); … … 867 867 double ratio = (double(numObs) / double(numExpectedObs)) * 100.0; 868 868 869 *_log << '\n'869 *_log << Qt::endl 870 870 << prefixSys2 << prefixFrq << "Observations : "; 871 871 if(_navFileNames.isEmpty() || numExpectedObs == 0.0 || _navFileIncomplete.contains(sys.toLatin1())) { … … 889 889 return; 890 890 } 891 *_log << '\n';891 *_log << Qt::endl; 892 892 for (int iEpo = 0; iEpo < _qcFile._qcEpo.size(); iEpo++) { 893 893 const t_qcEpo& qcEpo = _qcFile._qcEpo[iEpo]; … … 909 909 *_log << dateStr << QString(" %1").arg(qcEpo._qcSat.size(), 2) 910 910 << QString(" %1").arg(qcEpo._PDOP, 4, 'f', 1) 911 << '\n';911 << Qt::endl; 912 912 913 913 QMapIterator<t_prn, t_qcSat> itSat(qcEpo._qcSat); … … 961 961 } 962 962 } 963 *_log << '\n';963 *_log << Qt::endl; 964 964 } 965 965 } … … 985 985 } 986 986 if (_log) { 987 *_log << "Navigation File(s) : " << navFileName << '\n';987 *_log << "Navigation File(s) : " << navFileName << Qt::endl; 988 988 } 989 989 QStringListIterator it(_navFileNames); … … 1024 1024 } 1025 1025 } 1026 *_log << '\n';1026 *_log << Qt::endl; 1027 1027 } 1028 1028 } -
trunk/BNC/src/rinex/reqcedit.cpp
r10548 r10561 108 108 // --------------- 109 109 if (_log) { 110 *_log << QByteArray(78, '-') << '\n';110 *_log << QByteArray(78, '-') << Qt::endl; 111 111 *_log << "RINEX File Editing\n"; 112 *_log << QByteArray(78, '-') << '\n';112 *_log << QByteArray(78, '-') << Qt::endl; 113 113 114 114 *_log << QByteArray("Program").leftJustified(15) << ": " 115 << BNC_CORE->pgmName() << '\n';115 << BNC_CORE->pgmName() << Qt::endl; 116 116 *_log << QByteArray("Run by").leftJustified(15) << ": " 117 << BNC_CORE->userName() << '\n';117 << BNC_CORE->userName() << Qt::endl; 118 118 *_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; 120 120 *_log << QByteArray("RINEX Version").leftJustified(15) << ": " 121 << _rnxVersion << '\n';121 << _rnxVersion << Qt::endl; 122 122 *_log << QByteArray("Sampling").leftJustified(15) << ": " 123 << _samplingRate << " sec" << '\n';123 << _samplingRate << " sec" << Qt::endl; 124 124 *_log << QByteArray("Start time").leftJustified(15) << ": " 125 125 << _begTime.datestr().c_str() << ' ' 126 << _begTime.timestr(0).c_str() << '\n';126 << _begTime.timestr(0).c_str() << Qt::endl; 127 127 *_log << QByteArray("End time").leftJustified(15) << ": " 128 128 << _endTime.datestr().c_str() << ' ' 129 << _endTime.timestr(0).c_str() << '\n';129 << _endTime.timestr(0).c_str() << Qt::endl; 130 130 *_log << QByteArray("Input Obs Files").leftJustified(15) << ": " 131 << _obsFileNames.join(",") << '\n';131 << _obsFileNames.join(",") << Qt::endl; 132 132 *_log << QByteArray("Input Nav Files").leftJustified(15) << ": " 133 << _navFileNames.join(",") << '\n';133 << _navFileNames.join(",") << Qt::endl; 134 134 *_log << QByteArray("Output Obs File").leftJustified(15) << ": " 135 << _outObsFileName << '\n';135 << _outObsFileName << Qt::endl; 136 136 *_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; 140 140 _log->flush(); 141 141 } … … 186 186 delete rnxObsFile; 187 187 if (log) { 188 *log << "Error in rnxObsFile " << filePath.toLatin1().data() << '\n';188 *log << "Error in rnxObsFile " << filePath.toLatin1().data() << Qt::endl; 189 189 } 190 190 } … … 199 199 catch (...) { 200 200 if (log) { 201 *log << "Error in rnxObsFile " << fileName.toLatin1().data() << '\n';201 *log << "Error in rnxObsFile " << fileName.toLatin1().data() << Qt::endl; 202 202 } 203 203 } … … 318 318 *_log << "Processing File: " << obsFile->fileName() << " start: " 319 319 << obsFile->startTime().datestr().c_str() << ' ' 320 << obsFile->startTime().timestr(0).c_str() << '\n';320 << obsFile->startTime().timestr(0).c_str() << Qt::endl; 321 321 } 322 322 if (ii == 0) { … … 367 367 catch (QString str) { 368 368 if (_log) { 369 *_log << "Exception " << str << '\n';369 *_log << "Exception " << str << Qt::endl; 370 370 } 371 371 else { … … 376 376 catch (...) { 377 377 if (_log) { 378 *_log << "Exception unknown" << '\n';378 *_log << "Exception unknown" << Qt::endl; 379 379 } 380 380 else { -
trunk/BNC/src/rinex/rnxobsfile.cpp
r10548 r10561 1409 1409 const t_rnxSat& rnxSat = epo->rnxSat[iSat]; 1410 1410 if (iSat > 0 && iSat % 12 == 0) { 1411 *stream << '\n'<< QString().leftJustified(32);1411 *stream << Qt::endl << QString().leftJustified(32); 1412 1412 } 1413 1413 *stream << rnxSat.prn.toString().c_str(); 1414 1414 } 1415 *stream << '\n';1415 *stream << Qt::endl; 1416 1416 1417 1417 for (unsigned iSat = 0; iSat < epo->rnxSat.size(); iSat++) { … … 1420 1420 for (int iTypeV2 = 0; iTypeV2 < header.nTypes(sys); iTypeV2++) { 1421 1421 if (iTypeV2 > 0 && iTypeV2 % 5 == 0) { 1422 *stream << '\n';1422 *stream << Qt::endl; 1423 1423 } 1424 1424 QString typeV2 = header.obsType(sys, iTypeV2); … … 1476 1476 } 1477 1477 } 1478 *stream << '\n';1478 *stream << Qt::endl; 1479 1479 } 1480 1480 } … … 1559 1559 } 1560 1560 } 1561 *stream << '\n';1561 *stream << Qt::endl; 1562 1562 } 1563 1563 }
Note:
See TracChangeset
for help on using the changeset viewer.