- Timestamp:
- Jan 31, 2012, 6:31:52 PM (13 years ago)
- Location:
- trunk/BNC
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/rnxobsfile.cpp
r3652 r3656 48 48 //////////////////////////////////////////////////////////////////////////// 49 49 t_rnxObsFile::t_rnxObsHeader::t_rnxObsHeader() { 50 _version = 0.0; 50 _antNEU[0] = _antNEU[1] = _antNEU[2] = 0.0; 51 _xyz[0] = _xyz[1] = _xyz[2] = 0.0; 52 _version = 0.0; 51 53 } 52 54 … … 61 63 while (stream->status() == QTextStream::Ok && !stream->atEnd()) { 62 64 QString line = stream->readLine(); 65 if (line.isEmpty()) { 66 continue; 67 } 63 68 QString value = line.left(60).trimmed(); 64 69 QString key = line.mid(60).trimmed(); … … 75 80 else if (key == "ANT # / TYPE") { 76 81 _antennaName = value.mid(20); 82 } 83 else if (key == "APPROX POSITION XYZ") { 84 QTextStream in(value.toAscii(), QIODevice::ReadOnly); 85 in >> _xyz[0] >> _xyz[1] >> _xyz[2]; 86 } 87 else if (key == "ANTENNA: DELTA H/E/N") { 88 QTextStream in(value.toAscii(), QIODevice::ReadOnly); 89 in >> _antNEU[2] >> _antNEU[1] >> _antNEU[0]; 77 90 } 78 91 } … … 106 119 //////////////////////////////////////////////////////////////////////////// 107 120 t_irc t_rnxObsFile::getEpoch() { 108 121 while (_stream->status() == QTextStream::Ok && !_stream->atEnd()) { 122 QString line = _stream->readLine(); 123 if (line.isEmpty()) { 124 continue; 125 } 126 } 109 127 return success; 110 128 } -
trunk/BNC/rnxobsfile.h
r3652 r3656 43 43 QString _antennaName; 44 44 QString _markerName; 45 double _antNEU[3]; 46 double _xyz[3]; 45 47 }; 46 48
Note:
See TracChangeset
for help on using the changeset viewer.