Changeset 3651 in ntrip
- Timestamp:
- Jan 24, 2012, 1:02:15 PM (13 years ago)
- Location:
- trunk/BNC
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/BNC/rnxobsfile.cpp ¶
r3650 r3651 48 48 //////////////////////////////////////////////////////////////////////////// 49 49 t_rnxObsFile::t_rnxObsHeader::t_rnxObsHeader() { 50 _version = 0.0; 50 51 } 51 52 … … 60 61 while (stream->status() == QTextStream::Ok && !stream->atEnd()) { 61 62 QString line = stream->readLine(); 62 QString value = line.left(60); 63 QString key = line.mid(60); 64 if (key == "END OF HEADER") { 63 QString value = line.left(60).trimmed(); 64 QString key = line.mid(60).trimmed(); 65 if (key == "END OF HEADER") { 65 66 break; 66 67 } 67 cout << key.toAscii().data() << ": >" << value.toAscii().data() << "<\n"; 68 QTextStream in(value.toAscii(), QIODevice::ReadOnly); 69 if (key == "RINEX VERSION / TYPE") { 70 in >> _version; 71 } 68 72 } 73 74 cout << "RINEX Version = " << _version << endl; 69 75 70 76 return success; -
TabularUnified trunk/BNC/rnxobsfile.h ¶
r3646 r3651 40 40 t_irc read(QTextStream* stream); 41 41 private: 42 float _version; 42 43 }; 43 44
Note:
See TracChangeset
for help on using the changeset viewer.