Changeset 4137 in ntrip for trunk/BNC/rinex


Ignore:
Timestamp:
May 7, 2012, 4:42:13 PM (13 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC/rinex
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/rinex/reqcedit.cpp

    r4117 r4137  
    158158        txtMap["COMMENT"]  = comment;
    159159      }
    160       outObsFile.writeHeader(txtMap);
     160      outObsFile.writeHeader(&txtMap);
    161161    }
    162162    else {
  • trunk/BNC/rinex/rnxobsfile.cpp

    r4123 r4137  
    645645// Write Header
    646646////////////////////////////////////////////////////////////////////////////
    647 void t_rnxObsFile::writeHeader(const QMap<QString, QString>& txtMap) {
     647void t_rnxObsFile::writeHeader(const QMap<QString, QString>* txtMap) {
    648648
    649649  bncApp* app = (bncApp*) qApp;
     
    652652  QStringList comments;
    653653
    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      }
    662664    }
    663665  }
  • trunk/BNC/rinex/rnxobsfile.h

    r4113 r4137  
    142142  void setHeader(const t_rnxObsHeader& header, double version);
    143143  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);
    145145  QStringList obsTypesStrings();
    146146  void writeEpoch(const t_rnxEpo* epo);
Note: See TracChangeset for help on using the changeset viewer.