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


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.h

    r9508 r10034  
    44#include <vector>
    55#include <deque>
    6 #include <QMap>
    76#include <iostream>
    87#include "pppSatObs.h"
    98#include "bnctime.h"
    10 #include "pppRefSat.h"
    119
    1210namespace BNC_PPP {
     
    1816   public:
    1917    t_epoch(const bncTime& epoTime, std::vector<t_pppSatObs*>& obsVector,
    20             bool pseudoObsIono, const QMap<char, t_pppRefSat*>& refSatMap);
     18            bool pseudoObsIono);
    2119    ~t_epoch();
    2220          std::vector<t_pppSatObs*>& obsVector() {return _obsVector;}
    2321    const std::vector<t_pppSatObs*>& obsVector() const {return _obsVector;}
    24     const QMap<char, t_pppRefSat*>& refSatMap() const {return _refSatMap;}
    2522    const bncTime& epoTime() const {return _epoTime;}
    2623    bool pseudoObsIono() const {return _pseudoObsIono;}
     
    2926    bool                      _pseudoObsIono;
    3027    std::vector<t_pppSatObs*> _obsVector;
    31     QMap<char, t_pppRefSat*>  _refSatMap;
    3228  };
    3329
     
    3935
    4036  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);
    4438
    4539  const t_satCodeBias* satCodeBias(const t_prn& prn) const {
     
    6054  }
    6155
    62   // RefSat change required in current epoch
    63   // =======================================
    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 
    10056 private:
    10157  t_satCodeBias*           _satCodeBiases[t_prn::MAXPRN+1];
     
    10359  t_vTec*                  _vTec;
    10460  std::deque<t_epoch*>     _epochs;
    105   QMap<char, bool>         _refSatChangeRequiredMap;
    106   QMap<char, bool>         _refSatChangedMap;
    10761};
    10862
Note: See TracChangeset for help on using the changeset viewer.