- Timestamp:
- May 7, 2012, 4:42:13 PM (13 years ago)
- Location:
- trunk/BNC/rinex
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/rinex/reqcedit.cpp
r4117 r4137 158 158 txtMap["COMMENT"] = comment; 159 159 } 160 outObsFile.writeHeader( txtMap);160 outObsFile.writeHeader(&txtMap); 161 161 } 162 162 else { -
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 } -
trunk/BNC/rinex/rnxobsfile.h
r4113 r4137 142 142 void setHeader(const t_rnxObsHeader& header, double version); 143 143 void checkNewHeader(const t_rnxObsHeader& header); 144 void writeHeader(const QMap<QString, QString> & txtMap = QMap<QString, QString>());144 void writeHeader(const QMap<QString, QString>* txtMap = 0); 145 145 QStringList obsTypesStrings(); 146 146 void writeEpoch(const t_rnxEpo* epo);
Note:
See TracChangeset
for help on using the changeset viewer.