Changeset 10525 in ntrip for trunk/BNC/src/rinex/reqcedit.cpp
- Timestamp:
- Aug 19, 2024, 4:15:53 PM (5 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/rinex/reqcedit.cpp
r9945 r10525 58 58 _logFile = 0; 59 59 _log = 0; 60 _obsFileNames = settings.value("reqcObsFile").toString().split(",", Q String::SkipEmptyParts);60 _obsFileNames = settings.value("reqcObsFile").toString().split(",", Qt::SkipEmptyParts); 61 61 _outObsFileName = settings.value("reqcOutObsFile").toString(); 62 _navFileNames = settings.value("reqcNavFile").toString().split(",", Q String::SkipEmptyParts);62 _navFileNames = settings.value("reqcNavFile").toString().split(",", Qt::SkipEmptyParts); 63 63 _outNavFileName = settings.value("reqcOutNavFile").toString(); 64 64 int version = settings.value("reqcRnxVersion").toInt(); … … 108 108 // --------------- 109 109 if (_log) { 110 *_log << QByteArray(78, '-') << endl;110 *_log << QByteArray(78, '-') << '\n'; 111 111 *_log << "RINEX File Editing\n"; 112 *_log << QByteArray(78, '-') << endl;112 *_log << QByteArray(78, '-') << '\n'; 113 113 114 114 *_log << QByteArray("Program").leftJustified(15) << ": " 115 << BNC_CORE->pgmName() << endl;115 << BNC_CORE->pgmName() << '\n'; 116 116 *_log << QByteArray("Run by").leftJustified(15) << ": " 117 << BNC_CORE->userName() << endl;117 << BNC_CORE->userName() << '\n'; 118 118 *_log << QByteArray("Date").leftJustified(15) << ": " 119 << QDateTime::currentDateTime().toUTC().toString("yyyy-MM-dd hh:mm:ss") << endl;119 << QDateTime::currentDateTime().toUTC().toString("yyyy-MM-dd hh:mm:ss") << '\n'; 120 120 *_log << QByteArray("RINEX Version").leftJustified(15) << ": " 121 << _rnxVersion << endl;121 << _rnxVersion << '\n'; 122 122 *_log << QByteArray("Sampling").leftJustified(15) << ": " 123 << _samplingRate << " sec" << endl;123 << _samplingRate << " sec" << '\n'; 124 124 *_log << QByteArray("Start time").leftJustified(15) << ": " 125 125 << _begTime.datestr().c_str() << ' ' 126 << _begTime.timestr(0).c_str() << endl;126 << _begTime.timestr(0).c_str() << '\n'; 127 127 *_log << QByteArray("End time").leftJustified(15) << ": " 128 128 << _endTime.datestr().c_str() << ' ' 129 << _endTime.timestr(0).c_str() << endl;129 << _endTime.timestr(0).c_str() << '\n'; 130 130 *_log << QByteArray("Input Obs Files").leftJustified(15) << ": " 131 << _obsFileNames.join(",") << endl;131 << _obsFileNames.join(",") << '\n'; 132 132 *_log << QByteArray("Input Nav Files").leftJustified(15) << ": " 133 << _navFileNames.join(",") << endl;133 << _navFileNames.join(",") << '\n'; 134 134 *_log << QByteArray("Output Obs File").leftJustified(15) << ": " 135 << _outObsFileName << endl;135 << _outObsFileName << '\n'; 136 136 *_log << QByteArray("Output Nav File").leftJustified(15) << ": " 137 << _outNavFileName << endl;138 139 *_log << QByteArray(78, '-') << endl;137 << _outNavFileName << '\n'; 138 139 *_log << QByteArray(78, '-') << '\n'; 140 140 _log->flush(); 141 141 } … … 186 186 delete rnxObsFile; 187 187 if (log) { 188 *log << "Error in rnxObsFile " << filePath.toLatin1().data() << endl;188 *log << "Error in rnxObsFile " << filePath.toLatin1().data() << '\n'; 189 189 } 190 190 } … … 199 199 catch (...) { 200 200 if (log) { 201 *log << "Error in rnxObsFile " << fileName.toLatin1().data() << endl;202 } 203 } 204 } 205 } 206 qStableSort(rnxObsFiles.begin(), rnxObsFiles.end(),201 *log << "Error in rnxObsFile " << fileName.toLatin1().data() << '\n'; 202 } 203 } 204 } 205 } 206 std::stable_sort(rnxObsFiles.begin(), rnxObsFiles.end(), 207 207 t_rnxObsFile::earlierStartTime); 208 208 } … … 242 242 // ------------------------ 243 243 bncSettings settings; 244 QStringList useObsTypes = settings.value("reqcUseObsTypes").toString().split(" ", Q String::SkipEmptyParts);244 QStringList useObsTypes = settings.value("reqcUseObsTypes").toString().split(" ", Qt::SkipEmptyParts); 245 245 246 246 // Put together all observation types … … 318 318 *_log << "Processing File: " << obsFile->fileName() << " start: " 319 319 << obsFile->startTime().datestr().c_str() << ' ' 320 << obsFile->startTime().timestr(0).c_str() << endl;320 << obsFile->startTime().timestr(0).c_str() << '\n'; 321 321 } 322 322 if (ii == 0) { … … 367 367 catch (QString str) { 368 368 if (_log) { 369 *_log << "Exception " << str << endl;369 *_log << "Exception " << str << '\n'; 370 370 } 371 371 else { … … 376 376 catch (...) { 377 377 if (_log) { 378 *_log << "Exception unknown" << endl;378 *_log << "Exception unknown" << '\n'; 379 379 } 380 380 else { … … 540 540 } 541 541 // TODO: enable user decision 542 qStableSort(ephs.begin(), ephs.end(), t_eph::earlierTime);543 // qStableSort(ephs.begin(), ephs.end(), t_eph::prnSort);542 std::stable_sort(ephs.begin(), ephs.end(), t_eph::earlierTime); 543 //std::stable_sort(ephs.begin(), ephs.end(), t_eph::prnSort); 544 544 } 545 545 … … 785 785 QString preferredAttrib; 786 786 if (preferredAttribListSys[ii].indexOf("&") != -1) { 787 QStringList hlp = preferredAttribListSys[ii].split("&", Q String::SkipEmptyParts);787 QStringList hlp = preferredAttribListSys[ii].split("&", Qt::SkipEmptyParts); 788 788 if (hlp.size() == 2 && hlp[0].contains(band)) { 789 789 preferredAttrib = hlp[1];
Note:
See TracChangeset
for help on using the changeset viewer.