Changeset 10034 in ntrip for trunk/BNC/src/PPP/pppObsPool.cpp


Ignore:
Timestamp:
Apr 21, 2023, 11:48:24 AM (12 months ago)
Author:
stuerze
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/PPP/pppObsPool.cpp

    r10018 r10034  
    2323/////////////////////////////////////////////////////////////////////////////
    2424t_pppObsPool::t_epoch::t_epoch(const bncTime& epoTime, vector<t_pppSatObs*>& obsVector,
    25                                bool pseudoObsIono, const QMap<char, t_pppRefSat*>& refSatMap) {
     25                               bool pseudoObsIono) {
    2626  _epoTime        = epoTime;
    2727  _pseudoObsIono  = pseudoObsIono;
     
    3030  }
    3131  obsVector.clear();
    32 
    33   QMapIterator<char, t_pppRefSat*> it(refSatMap);
    34   while (it.hasNext()) {
    35     it.next();
    36     char sys = it.key();
    37     t_pppRefSat* refSat = it.value();
    38     _refSatMap[sys] = new t_pppRefSat(refSat->prn(), refSat->stecValue());
    39   }
    40   //refSatMap.clear();
    4132}
    4233
     
    4738    delete _obsVector[ii];
    4839  }
    49 
    50   QMapIterator<char, t_pppRefSat*> it(_refSatMap);
    51   while (it.hasNext()) {
    52     it.next();
    53     delete it.value();
    54   }
    55   _refSatMap.clear();
    5640}
    5741
     
    6650  }
    6751  _vTec = 0;
    68   _refSatChangeRequiredMap['G'] = false;
    69   _refSatChangeRequiredMap['R'] = false;
    70   _refSatChangeRequiredMap['E'] = false;
    71   _refSatChangeRequiredMap['C'] = false;
    72 
    7352}
    7453
     
    11695/////////////////////////////////////////////////////////////////////////////
    11796void t_pppObsPool::putEpoch(const bncTime& epoTime, vector<t_pppSatObs*>& obsVector,
    118                             bool pseudoObsIono, const QMap<char, t_pppRefSat*>& refSatMap) {
     97                            bool pseudoObsIono) {
    11998  const unsigned MAXSIZE = 2;
    120   _epochs.push_back(new t_epoch(epoTime, obsVector, pseudoObsIono, refSatMap));
     99  _epochs.push_back(new t_epoch(epoTime, obsVector, pseudoObsIono));
    121100
    122101  if (_epochs.size() > MAXSIZE) {
     
    125104  }
    126105}
    127 
    128 //
    129 /////////////////////////////////////////////////////////////////////////////
    130 void t_pppObsPool::deleteLastEpoch() {
    131 
    132   if (!_epochs.empty()) {
    133     //LOG << " " << _epochs.back()->epoTime().timestr().c_str() << endl;
    134     delete _epochs.back();
    135     _epochs.pop_back();
    136   }
    137 }
Note: See TracChangeset for help on using the changeset viewer.