Changeset 7999 in ntrip for trunk/BNC/src/rinex/reqcedit.cpp


Ignore:
Timestamp:
Aug 8, 2016, 4:59:03 PM (4 years ago)
Author:
stuerze
Message:

some informations about the data source of RINEX navigation files is added into the RINEX header

File:
1 edited

Legend:

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

    r7992 r7999  
    534534    return;
    535535  }
     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();
    536554
    537555  // Read Ephemerides
     
    566584  }
    567585
    568   bncSettings settings;
    569586  QMap<QString, QString> txtMap;
    570587  QString runBy = settings.value("reqcRunBy").toString();
     
    572589    txtMap["RUN BY"]  = runBy;
    573590  }
    574   QString comment = settings.value("reqcComment").toString();
    575   if (!comment.isEmpty()) {
    576     txtMap["COMMENT"]  = comment;
     591  if (!comments.isEmpty()) {
     592    txtMap["COMMENT"]  = comments.join("\\n");
    577593  }
    578594
Note: See TracChangeset for help on using the changeset viewer.