Changeset 11137 in ntrip for trunk/BNC/src/bncephuser.h


Ignore:
Timestamp:
Oct 28, 2026, 9:48:01 PM (16 hours ago)
Author:
stuerze
Message:

eph handling improved

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/bncephuser.h

    r11047 r11137  
    4646
    4747 public:
    48   bncEphUser(bool connectSlots);
     48  bncEphUser(bool connectSlots, unsigned maxQueueSize = 6);
    4949  virtual ~bncEphUser();
    5050
    … …  
    7272  }
    7373
     74  // latest data set of the satellite with this IOD
     75  t_eph* ephWithIOD(const QString& prn, unsigned iod) {
     76    if (_eph.contains(prn)) {
     77      const std::deque<t_eph*>& qq = _eph[prn];
     78      for (int ii = int(qq.size()) - 1; ii >= 0; ii--) {
     79        if (qq[ii]->IOD() == iod) {
     80          return qq[ii];
     81        }
     82      }
     83    }
     84    return 0;
     85  }
     86
    7487  const QList<QString> prnList() {return _eph.keys();}
    7588
    … …  
    8093  void checkEphemeris(t_eph* eph, bool realTime);
    8194  QMutex                             _mutex;
    82   static const unsigned              _maxQueueSize = 6;
     95  unsigned                           _maxQueueSize;  // data sets kept per satellite
    8396  QMap<QString, std::deque<t_eph*> > _eph;
    8497};
Note: See TracChangeset for help on using the changeset viewer.