Changeset 4137 in ntrip for trunk/BNC/rinex/rnxobsfile.cpp
- Timestamp:
- May 7, 2012, 4:42:13 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/rinex/rnxobsfile.cpp
r4123 r4137 645 645 // Write Header 646 646 //////////////////////////////////////////////////////////////////////////// 647 void t_rnxObsFile::writeHeader(const QMap<QString, QString> &txtMap) {647 void t_rnxObsFile::writeHeader(const QMap<QString, QString>* txtMap) { 648 648 649 649 bncApp* app = (bncApp*) qApp; … … 652 652 QStringList comments; 653 653 654 QMapIterator<QString, QString> it(txtMap); 655 while (it.hasNext()) { 656 it.next(); 657 if (it.key() == "RUN BY") { 658 runBy = it.value(); 659 } 660 else if (it.key() == "COMMENT") { 661 comments = it.value().split("\\n", QString::SkipEmptyParts); 654 if (txtMap) { 655 QMapIterator<QString, QString> it(*txtMap); 656 while (it.hasNext()) { 657 it.next(); 658 if (it.key() == "RUN BY") { 659 runBy = it.value(); 660 } 661 else if (it.key() == "COMMENT") { 662 comments = it.value().split("\\n", QString::SkipEmptyParts); 663 } 662 664 } 663 665 }
Note:
See TracChangeset
for help on using the changeset viewer.