Changeset 2710 in ntrip for trunk/BNC/bncrinex.cpp
- Timestamp:
- Nov 18, 2010, 12:44:38 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncrinex.cpp
r2709 r2710 107 107 //////////////////////////////////////////////////////////////////////////// 108 108 bncRinex::~bncRinex() { 109 QListIterator< p_obs> it(_obs);109 QListIterator<t_obs*> it(_obs); 110 110 while (it.hasNext()) { 111 111 delete it.next(); … … 518 518 // Stores Observation into Internal Array 519 519 //////////////////////////////////////////////////////////////////////////// 520 void bncRinex::deepCopy(const p_obsobs) {521 p_obsnewObs = new t_obs();520 void bncRinex::deepCopy(const t_obs* obs) { 521 t_obs* newObs = new t_obs(); 522 522 memcpy(newObs, obs, sizeof(t_obs)); 523 523 _obs.push_back(newObs); … … 530 530 // Select observations older than maxTime 531 531 // -------------------------------------- 532 QList< p_obs> dumpList;533 QMutableListIterator< p_obs> mIt(_obs);532 QList<t_obs*> dumpList; 533 QMutableListIterator<t_obs*> mIt(_obs); 534 534 while (mIt.hasNext()) { 535 p_obsobs = mIt.next();535 t_obs* obs = mIt.next(); 536 536 if (obs->GPSWeek * 7*24*3600 + obs->GPSWeeks < maxTime - 0.05) { 537 537 dumpList.push_back(obs); … … 548 548 // Time of Epoch 549 549 // ------------- 550 p_obsfObs = *dumpList.begin();550 t_obs* fObs = *dumpList.begin(); 551 551 QDateTime datTim = dateAndTimeFromGPSweek(fObs->GPSWeek, fObs->GPSWeeks); 552 552 QDateTime datTimNom = dateAndTimeFromGPSweek(fObs->GPSWeek, … … 582 582 << " " << 0 << setw(3) << dumpList.size(); 583 583 584 QListIterator< p_obs> it(dumpList); int iSat = 0;584 QListIterator<t_obs*> it(dumpList); int iSat = 0; 585 585 while (it.hasNext()) { 586 586 iSat++; 587 p_obsobs = it.next();587 t_obs* obs = it.next(); 588 588 _out << obs->satSys << setw(2) << obs->satNum; 589 589 if (iSat == 12 && it.hasNext()) { … … 595 595 } 596 596 597 QListIterator< p_obs> it(dumpList);597 QListIterator<t_obs*> it(dumpList); 598 598 while (it.hasNext()) { 599 p_obsobs = it.next();599 t_obs* obs = it.next(); 600 600 601 601 // Cycle slips detection
Note:
See TracChangeset
for help on using the changeset viewer.