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


Ignore:
Timestamp:
Dec 12, 2006, 4:59:42 PM (17 years ago)
Author:
mervart
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bnccaster.cpp

    r347 r349  
    114114// New Observations
    115115////////////////////////////////////////////////////////////////////////////
    116 void bncCaster::newObs(const QByteArray& staID, const QUrl& mountPoint,
    117                        bool firstObs, Observation* obs,
    118                        const QByteArray& format) {
     116int bncCaster::newObs(const QByteArray& staID,
     117                       bool firstObs, Observation* obs) {
    119118
    120119  QMutexLocker locker(&_mutex);
     
    128127  obs->StatID[sizeof(obs->StatID)-1] = '\0';
    129128       
    130   // Prepare RINEX Output
    131   // --------------------
    132   if (_rinexWriters.find(obs->StatID) == _rinexWriters.end()) {
    133     _rinexWriters.insert(obs->StatID, new bncRinex(obs->StatID,
    134                                                    mountPoint, format));
    135   }
    136   bncRinex* rnx = _rinexWriters.find(obs->StatID).value();
    137   if (_samplingRate == 0 || iSec % _samplingRate == 0) {
    138     rnx->deepCopy(obs);
    139   }
    140   rnx->dumpEpoch(newTime);
    141 
    142129  // First time, set the _lastDumpSec immediately
    143130  // --------------------------------------------
     
    158145    }
    159146    delete obs;
    160     return;
     147    return 1;
    161148  }
    162149
     
    172159    _lastDumpSec = newTime - _waitTime;
    173160  }
     161
     162  return 0;
    174163}
    175164
Note: See TracChangeset for help on using the changeset viewer.