Changeset 4406 in ntrip for trunk/BNC/src/bncrinex.cpp
- Timestamp:
- Jul 8, 2012, 12:59:22 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bncrinex.cpp
r4403 r4406 459 459 line.indexOf("SYS / # / OBS TYPES") != -1) ) { 460 460 typesOfObservationsWritten = true; 461 if (_rinexVers == 3) { 462 _out << "G 20 C1C L1C D1C S1C C1W L1W D1W S1W C2P L2P D2P S2P C2X SYS / # / OBS TYPES" << endl; 463 _out << " L2X D2X S2X C5 L5 D5 S5 SYS / # / OBS TYPES" << endl; 464 _out << "R 16 C1C L1C D1C S1C C1P L1P D1P S1P C2P L2P D2P S2P C2C SYS / # / OBS TYPES" << endl; 465 _out << " L2C D2C S2C SYS / # / OBS TYPES" << endl; 466 _out << "S 8 C1C L1C D1C S1C C1W L1W D1W S1W SYS / # / OBS TYPES" << endl; 467 _out << "E 8 C1 L1 D1 S1 C5 L5 D5 S5 SYS / # / OBS TYPES" << endl; 468 _out << "J 16 C1C L1C D1C S1C C1X L1X D1X S1X C2X L2X D2X S2X C5 SYS / # / OBS TYPES" << endl; 469 _out << " L5 D5 S5 SYS / # / OBS TYPES" << endl; 470 _out << "C 4 C2I L2I D2I S2I SYS / # / OBS TYPES" << endl; 471 } 472 else { 473 _out << " 8 C1 P1 L1 S1 C2 P2 L2 S2" 474 " # / TYPES OF OBSERV" << endl; 475 } 461 writeObsTypes(); 476 462 } 477 463 else if (line.indexOf("TIME OF FIRST OBS") != -1) { … … 536 522 << setw(14) << setprecision(4) << antennaNEU[2] 537 523 << " " << "ANTENNA: DELTA H/E/N" << endl; 538 if (_rinexVers == 3) { 539 QMapIterator<char, QVector<QString> > it(_rnxTypes); 540 while (it.hasNext()) { 541 it.next(); 542 char sys = it.key(); 543 const QVector<QString>& types = it.value(); 544 QString hlp; 545 QTextStream(&hlp) << QString("%1 %2").arg(sys).arg(types.size(), 3); 546 for (int ii = 0; ii < types.size(); ii++) { 547 QTextStream(&hlp) << QString(" %1").arg(types[ii], -3); 548 if ((ii+1) % 13 == 0 || ii == types.size()-1) { 549 _out << QString(hlp.leftJustified(60) + "SYS / # / OBS TYPES\n").toAscii().data(); 550 hlp = QString().leftJustified(6); 551 } 552 } 553 } 554 } 555 else { 556 _out << " 1 1 WAVELENGTH FACT L1/2" << endl; 557 _out << " 8 C1 P1 L1 S1 C2 P2 L2 S2 # / TYPES OF OBSERV" << endl; 558 } 524 525 writeObsTypes(); 526 559 527 _out << datTim.toString(" yyyy MM dd" 560 528 " hh mm ss.zzz0000").toAscii().data(); … … 572 540 573 541 _headerWritten = true; 542 } 543 544 // 545 //////////////////////////////////////////////////////////////////////////// 546 void bncRinex::writeObsTypes() { 547 if (_rinexVers == 3) { 548 QMapIterator<char, QVector<QString> > it(_rnxTypes); 549 while (it.hasNext()) { 550 it.next(); 551 char sys = it.key(); 552 const QVector<QString>& types = it.value(); 553 QString hlp; 554 QTextStream(&hlp) << QString("%1 %2").arg(sys).arg(types.size(), 3); 555 for (int ii = 0; ii < types.size(); ii++) { 556 QTextStream(&hlp) << QString(" %1").arg(types[ii], -3); 557 if ((ii+1) % 13 == 0 || ii == types.size()-1) { 558 _out << QString(hlp.leftJustified(60) + "SYS / # / OBS TYPES\n").toAscii().data(); 559 hlp = QString().leftJustified(6); 560 } 561 } 562 } 563 } 564 else { 565 _out << " 1 1 WAVELENGTH FACT L1/2" << endl; 566 _out << " 8 C1 P1 L1 S1 C2 P2 L2 S2 # / TYPES OF OBSERV" << endl; 567 } 574 568 } 575 569
Note:
See TracChangeset
for help on using the changeset viewer.