Changeset 4256 in ntrip
- Timestamp:
- Jun 22, 2012, 9:35:14 AM (12 years ago)
- Location:
- trunk/BNC/rinex
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/rinex/reqcedit.cpp
r4254 r4256 276 276 } 277 277 278 // 279 //////////////////////////////////////////////////////////////////////////// 280 void t_reqcEdit::editEphemerides() { 281 282 // Easy Exit 283 // --------- 284 if (_navFileNames.isEmpty() || _outNavFileName.isEmpty()) { 285 return; 286 } 287 288 // Read All Ephemerides 289 // -------------------- 290 QStringListIterator it(_navFileNames); 278 /// Read All Ephemerides 279 //////////////////////////////////////////////////////////////////////////// 280 void t_reqcEdit::readEphemerides(const QStringList& navFileNames, 281 QVector<t_eph*>& ephs) { 282 283 QStringListIterator it(navFileNames); 291 284 while (it.hasNext()) { 292 285 QString fileName = it.next(); … … 298 291 while (it.hasNext()) { 299 292 QString filePath = it.next().filePath(); 300 appendEphemerides(filePath );293 appendEphemerides(filePath, ephs); 301 294 } 302 295 } 303 296 else { 304 appendEphemerides(fileName); 305 } 306 } 307 qStableSort(_ephs.begin(), _ephs.end(), t_eph::earlierTime); 297 appendEphemerides(fileName, ephs); 298 } 299 } 300 qStableSort(ephs.begin(), ephs.end(), t_eph::earlierTime); 301 } 302 303 // 304 //////////////////////////////////////////////////////////////////////////// 305 void t_reqcEdit::editEphemerides() { 306 307 // Easy Exit 308 // --------- 309 if (_navFileNames.isEmpty() || _outNavFileName.isEmpty()) { 310 return; 311 } 312 313 t_reqcEdit::readEphemerides(_navFileNames, _ephs); 308 314 309 315 // Check Satellite Systems … … 357 363 // 358 364 //////////////////////////////////////////////////////////////////////////// 359 void t_reqcEdit::appendEphemerides(const QString& fileName) { 365 void t_reqcEdit::appendEphemerides(const QString& fileName, 366 QVector<t_eph*>& ephs) { 360 367 361 368 t_rnxNavFile rnxNavFile(fileName, t_rnxNavFile::input); … … 363 370 t_eph* eph = rnxNavFile.ephs()[ii]; 364 371 bool isNew = true; 365 for (int iOld = 0; iOld < _ephs.size(); iOld++) {366 const t_eph* ephOld = _ephs[iOld];372 for (int iOld = 0; iOld < ephs.size(); iOld++) { 373 const t_eph* ephOld = ephs[iOld]; 367 374 if (ephOld->prn() == eph->prn() && ephOld->TOC() == eph->TOC()) { 368 375 isNew = false; … … 372 379 if (isNew) { 373 380 if (eph->type() == t_eph::GPS) { 374 _ephs.append(new t_ephGPS(*dynamic_cast<t_ephGPS*>(eph)));381 ephs.append(new t_ephGPS(*dynamic_cast<t_ephGPS*>(eph))); 375 382 } 376 383 else if (eph->type() == t_eph::GLONASS) { 377 _ephs.append(new t_ephGlo(*dynamic_cast<t_ephGlo*>(eph)));384 ephs.append(new t_ephGlo(*dynamic_cast<t_ephGlo*>(eph))); 378 385 } 379 386 else if (eph->type() == t_eph::Galileo) { 380 _ephs.append(new t_ephGal(*dynamic_cast<t_ephGal*>(eph)));381 } 382 } 383 } 384 } 387 ephs.append(new t_ephGal(*dynamic_cast<t_ephGal*>(eph))); 388 } 389 } 390 } 391 } -
trunk/BNC/rinex/reqcedit.h
r4254 r4256 49 49 static void initRnxObsFiles(const QStringList& obsFileNames, 50 50 QVector<t_rnxObsFile*>& rnxObsFiles); 51 static void readEphemerides(const QStringList& navFileNames, 52 QVector<t_eph*>& ephs); 53 static void appendEphemerides(const QString& fileName, QVector<t_eph*>& ephs); 51 54 52 55 private: … … 56 59 void rememberLLI(const t_rnxObsFile* obsFile, const t_rnxObsFile::t_rnxEpo* epo); 57 60 void applyLLI(const t_rnxObsFile* obsFile, t_rnxObsFile::t_rnxEpo* epo); 58 void appendEphemerides(const QString& fileName);59 61 60 62 QStringList _obsFileNames;
Note:
See TracChangeset
for help on using the changeset viewer.