Changeset 88 in ntrip for trunk/BNC/bnccaster.cpp


Ignore:
Timestamp:
Aug 31, 2006, 7:20:36 PM (18 years ago)
Author:
mervart
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bnccaster.cpp

    r82 r88  
    6969// New Observations
    7070////////////////////////////////////////////////////////////////////////////
    71 void bncCaster::slotNewObs(const QByteArray& mountPoint, Observation* obs) {
     71void bncCaster::slotNewObs(const QByteArray& staID, Observation* obs) {
    7272
    7373  long newTime = obs->GPSWeek * 7*24*3600 + obs->GPSWeeks;
     
    8888  // Rename the station and save the observation
    8989  // -------------------------------------------
    90   strncpy(obs->StatID, mountPoint.constData(),sizeof(obs->StatID));
     90  strncpy(obs->StatID, staID.constData(),sizeof(obs->StatID));
    9191  _epochs->insert(newTime, obs);
    9292
     
    113113          this, SLOT(slotGetThreadError(const QByteArray&)));
    114114
    115   _mountPoints.push_back(getThread->mountPoint());
     115  _staIDs.push_back(getThread->staID());
    116116}
    117117
    118118// Error in get thread
    119119////////////////////////////////////////////////////////////////////////////
    120 void bncCaster::slotGetThreadError(const QByteArray& mountPoint) {
    121   _mountPoints.removeAll(mountPoint);
     120void bncCaster::slotGetThreadError(const QByteArray& staID) {
     121  _staIDs.removeAll(staID);
    122122  emit( newMessage(
    123            QString("Mountpoint size %1").arg(_mountPoints.size()).toAscii()) );
    124   if (_mountPoints.size() == 0) {
     123           QString("Mountpoint size %1").arg(_staIDs.size()).toAscii()) );
     124  if (_staIDs.size() == 0) {
    125125    emit(newMessage("bncCaster:: last get thread terminated"));
    126126    emit getThreadErrors();
Note: See TracChangeset for help on using the changeset viewer.