Changeset 8000 in ntrip for branches/BNC_2.12/src/rinex
- Timestamp:
- Aug 8, 2016, 5:11:40 PM (8 years ago)
- Location:
- branches/BNC_2.12/src/rinex
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/BNC_2.12/src/rinex/reqcedit.cpp
r7993 r8000 533 533 return; 534 534 } 535 535 536 // Concatenate all comments 537 // ------------------------ 538 QStringList comments; 539 bncSettings settings; 540 QString comment = settings.value("reqcComment").toString(); 541 if (!comment.isEmpty()) { 542 comments.append(comment); 543 } 544 QStringListIterator it(_navFileNames); 545 while (it.hasNext()) { 546 QString fileName = it.next(); 547 t_rnxNavFile rnxNavFile(fileName, t_rnxNavFile::input); 548 QStringListIterator itCmnt(rnxNavFile.comments()); 549 while (itCmnt.hasNext()) { 550 comments.append(itCmnt.next()); 551 } 552 } 553 comments.removeDuplicates(); 554 536 555 // Read Ephemerides 537 556 // ---------------- … … 565 584 } 566 585 567 bncSettings settings;568 586 QMap<QString, QString> txtMap; 569 587 QString runBy = settings.value("reqcRunBy").toString(); … … 571 589 txtMap["RUN BY"] = runBy; 572 590 } 573 QString comment = settings.value("reqcComment").toString(); 574 if (!comment.isEmpty()) { 575 txtMap["COMMENT"] = comment; 591 if (!comments.isEmpty()) { 592 txtMap["COMMENT"] = comments.join("\\n"); 576 593 } 577 594 -
branches/BNC_2.12/src/rinex/rnxnavfile.cpp
r7638 r8000 79 79 _glonass = true; 80 80 } 81 } 82 else if (key == "COMMENT") { 83 _comments.append(value.trimmed()); 81 84 } 82 85 } -
branches/BNC_2.12/src/rinex/rnxnavfile.h
r7169 r8000 50 50 double _version; 51 51 bool _glonass; 52 QStringList _comments; 52 53 }; 53 54 … … 60 61 void setVersion(double version) {_header._version = version;} 61 62 bool glonass() const {return _header._glonass;} 63 QStringList comments() const {return _header._comments;} 62 64 void setGlonass(bool glo) {_header._glonass = glo;} 63 65 void writeHeader(const QMap<QString, QString>* txtMap = 0);
Note:
See TracChangeset
for help on using the changeset viewer.