Changeset 3930 in ntrip for trunk/BNC/rinex
- Timestamp:
- Apr 19, 2012, 1:06:02 PM (13 years ago)
- Location:
- trunk/BNC/rinex
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/rinex/rnxobsfile.cpp
r3929 r3930 94 94 _markerName = value; 95 95 } 96 else if (key == "MARKER NUMBER") { 97 _markerNumber = line.mid(0,20).trimmed(); 98 } 96 99 else if (key == "ANT # / TYPE") { 97 _antennaName = line.mid(20,20).trimmed(); 100 _antennaNumber = line.mid( 0,20).trimmed(); 101 _antennaName = line.mid(20,20).trimmed(); 102 } 103 else if (key == "OBSERVER / AGENCY") { 104 _observer = line.mid( 0,20).trimmed(); 105 _agency = line.mid(20,40).trimmed(); 106 } 107 else if (key == "REC # / TYPE / VERS") { 108 _receiverNumber = line.mid( 0,20).trimmed(); 109 _receiverType = line.mid(20,20).trimmed(); 110 _receiverVersion = line.mid(40,20).trimmed(); 98 111 } 99 112 else if (key == "INTERVAL") { … … 523 536 //////////////////////////////////////////////////////////////////////////// 524 537 void t_rnxObsFile::setHeader(const t_rnxObsHeader& header) { 525 _header._version = header._version; 526 _header._interval = header._interval; 527 _header._antennaName = header._antennaName; 528 _header._markerName = header._markerName; 529 _header._antNEU = header._antNEU; 530 _header._antXYZ = header._antXYZ; 531 _header._antBSG = header._antBSG; 532 _header._xyz = header._xyz; 538 _header._version = header._version; 539 _header._interval = header._interval; 540 _header._antennaNumber = header._antennaNumber; 541 _header._antennaName = header._antennaName; 542 _header._markerName = header._markerName; 543 _header._markerNumber = header._markerNumber; 544 _header._antNEU = header._antNEU; 545 _header._antXYZ = header._antXYZ; 546 _header._antBSG = header._antBSG; 547 _header._xyz = header._xyz; 548 _header._observer = header._observer; 549 _header._agency = header._agency; 550 _header._receiverNumber = header._receiverNumber; 551 _header._receiverType = header._receiverType; 552 _header._receiverVersion = header._receiverVersion; 553 533 554 for (unsigned iPrn = 1; iPrn <= MAXPRN_GPS; iPrn++) { 534 555 _header._wlFactorsL1[iPrn] = header._wlFactorsL1[iPrn]; … … 581 602 *_stream << QString("%1%2") 582 603 .arg(_header._observer, -20) 583 .arg(_header._agency, - 20)604 .arg(_header._agency, -40) 584 605 .leftJustified(60) 585 606 << "OBSERVER / AGENCY\n"; … … 593 614 594 615 *_stream << QString("%1%2") 595 .arg( "xxxx", -20) // TODO596 .arg(_header._antennaName, -20)616 .arg(_header._antennaNumber, -20) 617 .arg(_header._antennaName, -20) 597 618 .leftJustified(60) 598 619 << "ANT # / TYPE\n"; -
trunk/BNC/rinex/rnxobsfile.h
r3928 r3930 107 107 float _version; 108 108 double _interval; 109 QString _antennaNumber; 109 110 QString _antennaName; 110 111 QString _markerName;
Note:
See TracChangeset
for help on using the changeset viewer.