Changeset 9945 in ntrip for trunk/BNC/src/rinex/rnxnavfile.cpp


Ignore:
Timestamp:
Dec 15, 2022, 11:06:12 PM (17 months ago)
Author:
stuerze
Message:

multiple 'run by date' entries for rinex version 4 added

File:
1 edited

Legend:

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

    r9788 r9945  
    8282    else if (key == "COMMENT") {
    8383      _comments.append(value.trimmed());
     84    }
     85    else if (key == "PGM / RUN BY / DATE") {
     86      _runByDate.append(value.trimmed());
    8487    }
    8588  }
     
    303306  QString     runBy = BNC_CORE->userName();
    304307  QStringList comments;
     308  QStringList runByDate;
    305309
    306310  if (txtMap) {
     
    310314      if      (it.key() == "RUN BY") {
    311315        runBy = it.value();
     316      }
     317      else if (it.key() == "RUN BY DATE") {
     318          runByDate = it.value().split("\\n", QString::SkipEmptyParts);
    312319      }
    313320      else if (it.key() == "COMMENT") {
     
    370377
    371378  if (version() >= 4.0) {
     379    QStringListIterator itRunByDt(runByDate);
     380    while (itRunByDt.hasNext()) {
     381      *_stream << itRunByDt.next().trimmed().left(60).leftJustified(60)
     382               << "PGM / RUN BY / DATE\n";
     383        }
    372384    *_stream << QString("%1").arg(leapSecs, 6, 10, QLatin1Char(' ')).left(60).leftJustified(60)
    373385        << "LEAP SECONDS\n";
     
    382394  }
    383395
    384 
    385396  *_stream << QString()
    386397    .leftJustified(60)
     
    391402////////////////////////////////////////////////////////////////////////////
    392403void t_rnxNavFile::writeEph(const t_eph* eph) {
    393   if (version() < 4.0) {
    394     if (eph->navType() == t_eph::CNAV ||
    395         eph->navType() == t_eph::CNV1 ||
    396         eph->navType() == t_eph::CNV2 ||
    397         eph->navType() == t_eph::CNV3) {
    398       return;
    399     }
    400   }
    401404  *_stream << eph->toString(version());
    402405}
Note: See TracChangeset for help on using the changeset viewer.