Changeset 9945 in ntrip for trunk/BNC/src/rinex/rnxnavfile.cpp
- Timestamp:
- Dec 15, 2022, 11:06:12 PM (17 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/rinex/rnxnavfile.cpp
r9788 r9945 82 82 else if (key == "COMMENT") { 83 83 _comments.append(value.trimmed()); 84 } 85 else if (key == "PGM / RUN BY / DATE") { 86 _runByDate.append(value.trimmed()); 84 87 } 85 88 } … … 303 306 QString runBy = BNC_CORE->userName(); 304 307 QStringList comments; 308 QStringList runByDate; 305 309 306 310 if (txtMap) { … … 310 314 if (it.key() == "RUN BY") { 311 315 runBy = it.value(); 316 } 317 else if (it.key() == "RUN BY DATE") { 318 runByDate = it.value().split("\\n", QString::SkipEmptyParts); 312 319 } 313 320 else if (it.key() == "COMMENT") { … … 370 377 371 378 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 } 372 384 *_stream << QString("%1").arg(leapSecs, 6, 10, QLatin1Char(' ')).left(60).leftJustified(60) 373 385 << "LEAP SECONDS\n"; … … 382 394 } 383 395 384 385 396 *_stream << QString() 386 397 .leftJustified(60) … … 391 402 //////////////////////////////////////////////////////////////////////////// 392 403 void 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 }401 404 *_stream << eph->toString(version()); 402 405 }
Note:
See TracChangeset
for help on using the changeset viewer.