Changeset 10034 in ntrip for trunk/BNC/src/PPP/pppObsPool.h
- Timestamp:
- Apr 21, 2023, 11:48:24 AM (12 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/PPP/pppObsPool.h
r9508 r10034 4 4 #include <vector> 5 5 #include <deque> 6 #include <QMap>7 6 #include <iostream> 8 7 #include "pppSatObs.h" 9 8 #include "bnctime.h" 10 #include "pppRefSat.h"11 9 12 10 namespace BNC_PPP { … … 18 16 public: 19 17 t_epoch(const bncTime& epoTime, std::vector<t_pppSatObs*>& obsVector, 20 bool pseudoObsIono , const QMap<char, t_pppRefSat*>& refSatMap);18 bool pseudoObsIono); 21 19 ~t_epoch(); 22 20 std::vector<t_pppSatObs*>& obsVector() {return _obsVector;} 23 21 const std::vector<t_pppSatObs*>& obsVector() const {return _obsVector;} 24 const QMap<char, t_pppRefSat*>& refSatMap() const {return _refSatMap;}25 22 const bncTime& epoTime() const {return _epoTime;} 26 23 bool pseudoObsIono() const {return _pseudoObsIono;} … … 29 26 bool _pseudoObsIono; 30 27 std::vector<t_pppSatObs*> _obsVector; 31 QMap<char, t_pppRefSat*> _refSatMap;32 28 }; 33 29 … … 39 35 40 36 void putEpoch(const bncTime& epoTime, std::vector<t_pppSatObs*>& obsVector, 41 bool pseudoObsIono, const QMap<char, t_pppRefSat*>& refSatMap); 42 43 void deleteLastEpoch(); 37 bool pseudoObsIono); 44 38 45 39 const t_satCodeBias* satCodeBias(const t_prn& prn) const { … … 60 54 } 61 55 62 // RefSat change required in current epoch63 // =======================================64 void setRefSatChangeRequired(char sys, bool refSatChangeRequired) {65 _refSatChangeRequiredMap[sys] = refSatChangeRequired;66 }67 bool refSatChangeRequired() {68 QMapIterator<char, bool> it(_refSatChangeRequiredMap);69 while (it.hasNext()) {70 it.next();71 if (it.value() == true) {72 return true;73 }74 }75 return false;76 }77 bool refSatChangeRequired(char sys) {78 return _refSatChangeRequiredMap[sys];79 }80 81 // RefSat changed in current epoch (different from last epoch)82 // ===========================================================83 void setRefSatChanged(char sys, bool refSatChanged) {84 _refSatChangedMap[sys] = refSatChanged;85 }86 bool refSatChanged() {87 QMapIterator<char, bool> it(_refSatChangedMap);88 while (it.hasNext()) {89 it.next();90 if (it.value() == true) {91 return true;92 }93 }94 return false;95 }96 bool refSatChanged(char sys) {97 return _refSatChangedMap[sys];98 }99 100 56 private: 101 57 t_satCodeBias* _satCodeBiases[t_prn::MAXPRN+1]; … … 103 59 t_vTec* _vTec; 104 60 std::deque<t_epoch*> _epochs; 105 QMap<char, bool> _refSatChangeRequiredMap;106 QMap<char, bool> _refSatChangedMap;107 61 }; 108 62
Note:
See TracChangeset
for help on using the changeset viewer.