Changeset 3675 in ntrip
- Timestamp:
- Feb 12, 2012, 10:39:03 AM (13 years ago)
- Location:
- trunk/BNC
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncpostprocess.cpp
r3674 r3675 108 108 // Read Observations 109 109 // ----------------- 110 while (_rnxObsFile->getEpoch() == success) { 110 const t_rnxObsFile::t_epo* epo = 0; 111 while ( (epo = _rnxObsFile->nextEpoch()) != 0) { 111 112 112 113 } -
trunk/BNC/rnxobsfile.cpp
r3674 r3675 130 130 // Retrieve single Epoch 131 131 //////////////////////////////////////////////////////////////////////////// 132 t_irct_rnxObsFile::getEpoch() {132 const t_rnxObsFile::t_epo* t_rnxObsFile::nextEpoch() { 133 133 if (version() < 3.0) { 134 return getEpochV2();134 return nextEpochV2(); 135 135 } 136 136 else { 137 return getEpochV3();137 return nextEpochV3(); 138 138 } 139 139 } … … 141 141 // Retrieve single Epoch (RINEX Version 3) 142 142 //////////////////////////////////////////////////////////////////////////// 143 t_irct_rnxObsFile::getEpochV3() {144 return failure; // TODO143 const t_rnxObsFile::t_epo* t_rnxObsFile::nextEpochV3() { 144 return 0; // TODO 145 145 } 146 146 147 147 // Retrieve single Epoch (RINEX Version 2) 148 148 //////////////////////////////////////////////////////////////////////////// 149 t_irct_rnxObsFile::getEpochV2() {149 const t_rnxObsFile::t_epo* t_rnxObsFile::nextEpochV2() { 150 150 while (_stream->status() == QTextStream::Ok && !_stream->atEnd()) { 151 151 QString line = _stream->readLine(); … … 174 174 } 175 175 QString prn = line.mid(pos, 3); 176 176 177 cout << "prn = " << prn.toAscii().data() << endl; 177 178 pos += 3; … … 179 180 180 181 //// beg test 181 return failure;182 return 0; 182 183 //// end test 183 184 } 184 185 185 return success;186 return &_currEpo; 186 187 } -
trunk/BNC/rnxobsfile.h
r3673 r3675 60 60 ~t_rnxObsFile(); 61 61 62 class t_epo { 63 public: 64 QMap<QString, ColumnVector> satObs; 65 }; 66 62 67 float version() const {return _header.version();} 63 t_irc getEpoch();68 const t_epo* nextEpoch(); 64 69 65 70 private: 66 t_irc getEpochV2();67 t_irc getEpochV3();71 const t_epo* nextEpochV2(); 72 const t_epo* nextEpochV3(); 68 73 69 74 t_rnxObsHeader _header; 70 75 QFile* _file; 71 76 QTextStream* _stream; 77 t_epo _currEpo; 72 78 }; 73 79
Note:
See TracChangeset
for help on using the changeset viewer.