Changeset 2710 in ntrip for trunk/BNC/bncrinex.cpp


Ignore:
Timestamp:
Nov 18, 2010, 12:44:38 PM (13 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncrinex.cpp

    r2709 r2710  
    107107////////////////////////////////////////////////////////////////////////////
    108108bncRinex::~bncRinex() {
    109   QListIterator<p_obs> it(_obs);
     109  QListIterator<t_obs*> it(_obs);
    110110  while (it.hasNext()) {
    111111    delete it.next();
     
    518518// Stores Observation into Internal Array
    519519////////////////////////////////////////////////////////////////////////////
    520 void bncRinex::deepCopy(const p_obs obs) {
    521   p_obs newObs = new t_obs();
     520void bncRinex::deepCopy(const t_obs* obs) {
     521  t_obs* newObs = new t_obs();
    522522  memcpy(newObs, obs, sizeof(t_obs));
    523523  _obs.push_back(newObs);
     
    530530  // Select observations older than maxTime
    531531  // --------------------------------------
    532   QList<p_obs> dumpList;
    533   QMutableListIterator<p_obs> mIt(_obs);
     532  QList<t_obs*> dumpList;
     533  QMutableListIterator<t_obs*> mIt(_obs);
    534534  while (mIt.hasNext()) {
    535     p_obs obs = mIt.next();
     535    t_obs* obs = mIt.next();
    536536    if (obs->GPSWeek * 7*24*3600 + obs->GPSWeeks < maxTime - 0.05) {
    537537      dumpList.push_back(obs);
     
    548548  // Time of Epoch
    549549  // -------------
    550   p_obs fObs = *dumpList.begin();
     550  t_obs* fObs = *dumpList.begin();
    551551  QDateTime datTim    = dateAndTimeFromGPSweek(fObs->GPSWeek, fObs->GPSWeeks);
    552552  QDateTime datTimNom = dateAndTimeFromGPSweek(fObs->GPSWeek,
     
    582582         << "  " << 0 << setw(3)  << dumpList.size();
    583583
    584     QListIterator<p_obs> it(dumpList); int iSat = 0;
     584    QListIterator<t_obs*> it(dumpList); int iSat = 0;
    585585    while (it.hasNext()) {
    586586      iSat++;
    587       p_obs obs = it.next();
     587      t_obs* obs = it.next();
    588588      _out << obs->satSys << setw(2) << obs->satNum;
    589589      if (iSat == 12 && it.hasNext()) {
     
    595595  }
    596596
    597   QListIterator<p_obs> it(dumpList);
     597  QListIterator<t_obs*> it(dumpList);
    598598  while (it.hasNext()) {
    599     p_obs obs = it.next();
     599    t_obs* obs = it.next();
    600600
    601601    // Cycle slips detection
Note: See TracChangeset for help on using the changeset viewer.