Changeset 9945 in ntrip for trunk/BNC/src/rinex/rnxobsfile.cpp
- Timestamp:
- Dec 15, 2022, 11:06:12 PM (16 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/rinex/rnxobsfile.cpp
r9870 r9945 110 110 in >> _version; 111 111 } 112 else if (key == "PGM / RUN BY / DATE") { 113 _runByDate.append(value.trimmed()); 114 } 112 115 else if (key == "MARKER NAME") { 113 116 _markerName = value; … … 320 323 _usedSystems += QChar(it.key()); 321 324 } 322 325 323 326 return success; 324 327 } … … 406 409 const QStringList* phaseShifts, 407 410 const QStringList* gloBiases, 408 const QStringList* gloSlots) { 411 const QStringList* gloSlots, 412 const QStringList* runByDate) { 409 413 410 414 _version = versionFromInt(version); … … 596 600 } 597 601 } 602 if (_version >= 4.0) { 603 // set run by date entries 604 if (!runByDate || runByDate->empty()) { 605 _runByDate = header._runByDate; 606 } 607 else { 608 foreach (const QString &str, *runByDate) { 609 _runByDate.append(str); 610 } 611 } 612 } 613 598 614 } 599 615 … … 604 620 605 621 QStringList newComments; 622 QStringList runByDate; 606 623 QString runBy = BNC_CORE->userName(); 607 624 608 625 if (txtMap) { 609 QMapIterator<QString, QString> it(*txtMap);626 QMapIterator<QString, QString> it(*txtMap); 610 627 while (it.hasNext()) { 611 628 it.next(); 612 629 if (it.key() == "RUN BY") { 613 630 runBy = it.value(); 631 } 632 else if (it.key() == "RUN BY DATE") { 633 runByDate = it.value().split("\\n", QString::SkipEmptyParts); 614 634 } 615 635 else if ((it.key().indexOf("COMMENT")) != -1) { … … 634 654 << "PGM / RUN BY / DATE\n"; 635 655 656 if (_version >= 4.0) { 657 QStringListIterator itRunByDt(_runByDate); 658 while (itRunByDt.hasNext()) { 659 *stream << itRunByDt.next().trimmed().left(60).leftJustified(60) 660 << "PGM / RUN BY / DATE\n"; 661 } 662 } 636 663 QStringListIterator itCmnt(_comments + newComments); 637 664 while (itCmnt.hasNext()) { … … 882 909 } 883 910 911 // 912 //////////////////////////////////////////////////////////////////////////// 884 913 QStringList t_rnxObsHeader::obsTypes(char sys) const { 885 914 if (_obsTypes.contains(sys)) {
Note:
See TracChangeset
for help on using the changeset viewer.