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


Ignore:
Timestamp:
Dec 13, 2006, 10:43:39 AM (17 years ago)
Author:
mervart
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bnccaster.cpp

    r349 r350  
    114114// New Observations
    115115////////////////////////////////////////////////////////////////////////////
    116 int bncCaster::newObs(const QByteArray& staID,
    117                        bool firstObs, Observation* obs) {
     116void bncCaster::newObs(const QByteArray& staID, const QUrl& mountPoint,
     117                       bool firstObs, Observation* obs,
     118                       const QByteArray& format) {
    118119
    119120  QMutexLocker locker(&_mutex);
     
    127128  obs->StatID[sizeof(obs->StatID)-1] = '\0';
    128129       
     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
    129142  // First time, set the _lastDumpSec immediately
    130143  // --------------------------------------------
     
    145158    }
    146159    delete obs;
    147     return 1;
     160    return;
    148161  }
    149162
     
    159172    _lastDumpSec = newTime - _waitTime;
    160173  }
    161 
    162   return 0;
    163174}
    164175
Note: See TracChangeset for help on using the changeset viewer.