Changeset 4081 in ntrip
- Timestamp:
- Apr 28, 2012, 4:48:27 PM (13 years ago)
- Location:
- trunk/BNC/rinex
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/rinex/reqcedit.cpp
r4080 r4081 263 263 while (it.hasNext()) { 264 264 QString fileName = it.next(); 265 t_rnxNavFile rnxNavFile(fileName, t_rnxNavFile::input); 266 for (unsigned ii = 0; ii < rnxNavFile.ephs().size(); ii++) { 267 t_eph* eph = rnxNavFile.ephs()[ii]; 268 bool isNew = true; 269 for (int iOld = 0; iOld < _ephs.size(); iOld++) { 270 const t_eph* ephOld = _ephs[iOld]; 271 if (ephOld->prn() == eph->prn() && ephOld->IOD() == eph->IOD()) { 272 isNew = false; 273 break; 274 } 275 } 276 if (isNew) { 277 if (eph->type() == t_eph::GPS) { 278 _ephs.append(new t_ephGPS(*dynamic_cast<t_ephGPS*>(eph))); 279 } 280 else if (eph->type() == t_eph::GLONASS) { 281 _ephs.append(new t_ephGlo(*dynamic_cast<t_ephGlo*>(eph))); 282 } 283 else if (eph->type() == t_eph::Galileo) { 284 _ephs.append(new t_ephGal(*dynamic_cast<t_ephGal*>(eph))); 285 } 286 } 265 if (fileName.indexOf('*') != -1 || fileName.indexOf('?') != -1) { 266 QFileInfo fileInfo(fileName); 267 QDir dir = fileInfo.dir(); 268 QStringList filters; filters << fileInfo.fileName(); 269 QListIterator<QFileInfo> it(dir.entryInfoList(filters)); 270 while (it.hasNext()) { 271 QString filePath = it.next().filePath(); 272 appendEphemerides(filePath); 273 } 274 } 275 else { 276 appendEphemerides(fileName); 287 277 } 288 278 } … … 304 294 } 305 295 } 296 297 // 298 //////////////////////////////////////////////////////////////////////////// 299 void t_reqcEdit::appendEphemerides(const QString& fileName) { 300 301 t_rnxNavFile rnxNavFile(fileName, t_rnxNavFile::input); 302 for (unsigned ii = 0; ii < rnxNavFile.ephs().size(); ii++) { 303 t_eph* eph = rnxNavFile.ephs()[ii]; 304 bool isNew = true; 305 for (int iOld = 0; iOld < _ephs.size(); iOld++) { 306 const t_eph* ephOld = _ephs[iOld]; 307 if (ephOld->prn() == eph->prn() && ephOld->IOD() == eph->IOD()) { 308 isNew = false; 309 break; 310 } 311 } 312 if (isNew) { 313 if (eph->type() == t_eph::GPS) { 314 _ephs.append(new t_ephGPS(*dynamic_cast<t_ephGPS*>(eph))); 315 } 316 else if (eph->type() == t_eph::GLONASS) { 317 _ephs.append(new t_ephGlo(*dynamic_cast<t_ephGlo*>(eph))); 318 } 319 else if (eph->type() == t_eph::Galileo) { 320 _ephs.append(new t_ephGal(*dynamic_cast<t_ephGal*>(eph))); 321 } 322 } 323 } 324 } -
trunk/BNC/rinex/reqcedit.h
r4000 r4081 54 54 void rememberLLI(const t_rnxObsFile* obsFile, const t_rnxObsFile::t_rnxEpo* epo); 55 55 void applyLLI(const t_rnxObsFile* obsFile, t_rnxObsFile::t_rnxEpo* epo); 56 void appendEphemerides(const QString& fileName); 56 57 57 58 QStringList _obsFileNames;
Note:
See TracChangeset
for help on using the changeset viewer.