Changeset 6393 in ntrip for trunk/BNC


Ignore:
Timestamp:
Dec 20, 2014, 11:06:47 AM (10 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC/src
Files:
2 edited

Legend:

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

    r6141 r6393  
    5959    connect(BNC_CORE, SIGNAL(newEphGalileo(galileoephemeris)),
    6060            this, SLOT(slotNewEphGalileo(galileoephemeris)), Qt::DirectConnection);
     61
     62    connect(BNC_CORE, SIGNAL(newEphSBAS(sbasephemeris)),
     63            this, SLOT(slotNewEphSBAS(sbasephemeris)), Qt::DirectConnection);
    6164  }
    6265}
     
    186189}
    187190
     191//
     192////////////////////////////////////////////////////////////////////////////
     193void bncEphUser::slotNewEphSBAS(sbasephemeris sbaseph) {
     194  QMutexLocker locker(&_mutex);
     195
     196  t_ephSBAS* eNew = new t_ephSBAS(); eNew->set(&sbaseph);
     197  QString    prn  = QString(eNew->prn().toString().c_str());
     198
     199  if (_eph.contains(prn)) {
     200    if (eNew->isNewerThan(_eph.value(prn)->last)) {
     201      delete _eph.value(prn)->prev;
     202      _eph.value(prn)->prev = _eph.value(prn)->last;
     203      _eph.value(prn)->last = eNew;
     204    }
     205    else {
     206      delete eNew;
     207      return;
     208    }
     209  }
     210  else {
     211    _eph.insert(prn, new t_ephPair(eNew));
     212  }
     213  ephBufferChanged();
     214}
     215
  • trunk/BNC/src/bncephuser.h

    r6141 r6393  
    7373  void slotNewEphGlonass(glonassephemeris gloeph);
    7474  void slotNewEphGalileo(galileoephemeris galeph);
     75  void slotNewEphSBAS(sbasephemeris sbaseph);
    7576
    7677 protected:
Note: See TracChangeset for help on using the changeset viewer.