Changeset 3382 in ntrip for trunk/BNC/bncmodel.cpp


Ignore:
Timestamp:
Aug 28, 2011, 6:08:33 PM (13 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncmodel.cpp

    r3381 r3382  
    259259  _ellBanc.ReSize(3); _ellBanc = 0.0;
    260260
    261   // Save for Outlier Detection
    262   // --------------------------
    263   _epoData_sav = 0;
     261  // Save copy of data (used in outlier detection)
     262  // ---------------------------------------------
     263  _epoData_sav = new t_epoData();
    264264}
    265265
     
    13741374          else {
    13751375            if (nNeglected == 0) {
    1376               delete _epoData_sav;
    1377               _epoData_sav = new t_epoData(*epoData);
     1376              _epoData_sav->deepCopy(epoData);
    13781377            }
    13791378          }
     
    15451544  }
    15461545
    1547   delete _epoData_sav;
    1548   _epoData_sav = new t_epoData(*epoData);
     1546  _epoData_sav->deepCopy(epoData);
    15491547}
    15501548
     
    15681566  }
    15691567
    1570   epoData->tt = _epoData_sav->tt;
    1571   QMapIterator<QString, t_satData*> itGPS(_epoData_sav->satDataGPS);
    1572   while (itGPS.hasNext()) {
    1573     itGPS.next();
    1574     epoData->satDataGPS.remove(itGPS.key());
    1575     epoData->satDataGPS[itGPS.key()] = new t_satData(*itGPS.value());
    1576   }
    1577   QMapIterator<QString, t_satData*> itGlo(_epoData_sav->satDataGlo);
    1578   while (itGlo.hasNext()) {
    1579     itGlo.next();
    1580     epoData->satDataGlo.remove(itGlo.key());
    1581     epoData->satDataGlo[itGlo.key()] = new t_satData(*itGlo.value());
    1582   }
    1583   QMapIterator<QString, t_satData*> itGal(_epoData_sav->satDataGal);
    1584   while (itGal.hasNext()) {
    1585     itGal.next();
    1586     epoData->satDataGal.remove(itGal.key());
    1587     epoData->satDataGal[itGal.key()] = new t_satData(*itGal.value());
    1588   }
    1589 
     1568  epoData->deepCopy(_epoData_sav);
    15901569}
    15911570
     
    15951574                          std::vector<QString>* allPrns) {
    15961575
     1576  // GPS
     1577  // ---
    15971578  QMapIterator<QString, t_satData*> itGPS(epoData->satDataGPS);
    15981579  while (itGPS.hasNext()) {
Note: See TracChangeset for help on using the changeset viewer.