Changeset 9508 in ntrip for trunk/BNC/src/PPP/pppObsPool.h
- Timestamp:
- Oct 6, 2021, 10:50:34 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/PPP/pppObsPool.h
r9386 r9508 18 18 public: 19 19 t_epoch(const bncTime& epoTime, std::vector<t_pppSatObs*>& obsVector, 20 bool pseudoObsIono );20 bool pseudoObsIono, const QMap<char, t_pppRefSat*>& refSatMap); 21 21 ~t_epoch(); 22 22 std::vector<t_pppSatObs*>& obsVector() {return _obsVector;} 23 23 const std::vector<t_pppSatObs*>& obsVector() const {return _obsVector;} 24 const QMap<char, t_pppRefSat*>& refSatMap() const {return _refSatMap;} 24 25 const bncTime& epoTime() const {return _epoTime;} 25 26 bool pseudoObsIono() const {return _pseudoObsIono;} 26 27 private: 27 28 bncTime _epoTime; 29 bool _pseudoObsIono; 28 30 std::vector<t_pppSatObs*> _obsVector; 29 bool _pseudoObsIono;31 QMap<char, t_pppRefSat*> _refSatMap; 30 32 }; 31 33 … … 37 39 38 40 void putEpoch(const bncTime& epoTime, std::vector<t_pppSatObs*>& obsVector, 39 bool pseudoObs );41 bool pseudoObsIono, const QMap<char, t_pppRefSat*>& refSatMap); 40 42 41 43 void deleteLastEpoch(); … … 56 58 return 0; 57 59 } 58 }59 60 // RefSatMap of the current epoch61 // ==============================62 void initRefSatMapElement(char system) {_refSatMap[system] = new t_pppRefSat();}63 void clearRefSatMap() {64 QMapIterator<char, t_pppRefSat*> it(_refSatMap);65 while (it.hasNext()) {66 it.next();67 delete it.value();68 }69 _refSatMap.clear();70 }71 QMap<char, t_pppRefSat*> getRefSatMap() {return _refSatMap;}72 t_pppRefSat* getRefSatMapElement(char sys) {return _refSatMap[sys];}73 74 75 // RefSatMap of the last epoch76 // ===========================77 QMap<char, t_prn> getRefSatMapLastEpoch() {return _refSatMapLastEpoch;}78 t_prn getRefSatMapElementLastEpoch(char sys) {return _refSatMapLastEpoch[sys];}79 void setRefSatMapElementLastEpoch(char sys, t_prn prn) {_refSatMapLastEpoch[sys] = prn;}80 void saveLastEpoRefSats() {81 QMapIterator<char, t_pppRefSat*> it(getRefSatMap());82 while (it.hasNext()) {83 it.next();84 t_prn prn = it.value()->prn();85 setRefSatMapElementLastEpoch(prn.system(), prn);86 };87 60 } 88 61 … … 130 103 t_vTec* _vTec; 131 104 std::deque<t_epoch*> _epochs; 132 QMap<char, t_pppRefSat*> _refSatMap;133 105 QMap<char, bool> _refSatChangeRequiredMap; 134 106 QMap<char, bool> _refSatChangedMap; 135 QMap<char, t_prn> _refSatMapLastEpoch;136 107 }; 137 108
Note:
See TracChangeset
for help on using the changeset viewer.