Changeset 10034 in ntrip for trunk/BNC/src/PPP/pppObsPool.cpp
- Timestamp:
- Apr 21, 2023, 11:48:24 AM (12 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/PPP/pppObsPool.cpp
r10018 r10034 23 23 ///////////////////////////////////////////////////////////////////////////// 24 24 t_pppObsPool::t_epoch::t_epoch(const bncTime& epoTime, vector<t_pppSatObs*>& obsVector, 25 bool pseudoObsIono , const QMap<char, t_pppRefSat*>& refSatMap) {25 bool pseudoObsIono) { 26 26 _epoTime = epoTime; 27 27 _pseudoObsIono = pseudoObsIono; … … 30 30 } 31 31 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();41 32 } 42 33 … … 47 38 delete _obsVector[ii]; 48 39 } 49 50 QMapIterator<char, t_pppRefSat*> it(_refSatMap);51 while (it.hasNext()) {52 it.next();53 delete it.value();54 }55 _refSatMap.clear();56 40 } 57 41 … … 66 50 } 67 51 _vTec = 0; 68 _refSatChangeRequiredMap['G'] = false;69 _refSatChangeRequiredMap['R'] = false;70 _refSatChangeRequiredMap['E'] = false;71 _refSatChangeRequiredMap['C'] = false;72 73 52 } 74 53 … … 116 95 ///////////////////////////////////////////////////////////////////////////// 117 96 void t_pppObsPool::putEpoch(const bncTime& epoTime, vector<t_pppSatObs*>& obsVector, 118 bool pseudoObsIono , const QMap<char, t_pppRefSat*>& refSatMap) {97 bool pseudoObsIono) { 119 98 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)); 121 100 122 101 if (_epochs.size() > MAXSIZE) { … … 125 104 } 126 105 } 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.