Changeset 4038 in ntrip
- Timestamp:
- Apr 23, 2012, 6:59:40 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/rinex/reqcedit.cpp
r4013 r4038 249 249 t_rnxNavFile rnxNavFile(fileName, t_rnxNavFile::input); 250 250 for (unsigned ii = 0; ii < rnxNavFile.ephs().size(); ii++) { 251 t_eph* eph = rnxNavFile.ephs()[ii]; 252 if (eph->type() == t_eph::GPS) { 253 _ephs.append(new t_ephGPS(*dynamic_cast<t_ephGPS*>(eph))); 254 } 255 else if (eph->type() == t_eph::GLONASS) { 256 _ephs.append(new t_ephGlo(*dynamic_cast<t_ephGlo*>(eph))); 257 } 258 else if (eph->type() == t_eph::Galileo) { 259 _ephs.append(new t_ephGal(*dynamic_cast<t_ephGal*>(eph))); 251 t_eph* eph = rnxNavFile.ephs()[ii]; 252 bool isNew = true; 253 for (int iOld = 0; iOld < _ephs.size(); iOld++) { 254 const t_eph* ephOld = _ephs[iOld]; 255 if (ephOld->prn() == eph->prn() && ephOld->IOD() == eph->IOD()) { 256 isNew = false; 257 break; 258 } 259 } 260 if (isNew) { 261 if (eph->type() == t_eph::GPS) { 262 _ephs.append(new t_ephGPS(*dynamic_cast<t_ephGPS*>(eph))); 263 } 264 else if (eph->type() == t_eph::GLONASS) { 265 _ephs.append(new t_ephGlo(*dynamic_cast<t_ephGlo*>(eph))); 266 } 267 else if (eph->type() == t_eph::Galileo) { 268 _ephs.append(new t_ephGal(*dynamic_cast<t_ephGal*>(eph))); 269 } 260 270 } 261 271 }
Note:
See TracChangeset
for help on using the changeset viewer.