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


Ignore:
Timestamp:
Feb 26, 2007, 6:15:18 PM (17 years ago)
Author:
mervart
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bnccaster.cpp

    r397 r408  
    9292  if (_waitTime < 1) {
    9393    _waitTime = 1;
    94   }
    95 
    96   if ( settings.value("rnxPath").toString().isEmpty() ) {
    97     _rinexWriters = 0;
    98   }
    99   else {
    100     _rinexWriters = new QMap<QString, bncRinex*>;
    10194  }
    10295
     
    123116  delete _sockets;
    124117  delete _epochs;
    125   delete _rinexWriters;
    126 }
    127 
    128 // Reconnecting
    129 ////////////////////////////////////////////////////////////////////////////
    130 void bncCaster::reconnecting(const QByteArray& staID) {
    131   QMutexLocker locker(&_mutex);
    132 
    133   if (_rinexWriters && _rinexWriters->find(staID) != _rinexWriters->end()) {
    134     bncRinex* rnx = _rinexWriters->find(staID).value();
    135     rnx->setReconnectFlag(true);
    136   }
    137118}
    138119
    139120// New Observations
    140121////////////////////////////////////////////////////////////////////////////
    141 void bncCaster::newObs(const QByteArray& staID, const QUrl& mountPoint,
    142                        bool firstObs, Observation* obs,
    143                        const QByteArray& format,
    144                        const QByteArray& latitude,
    145                        const QByteArray& longitude,
    146                        const QByteArray& nmea) {
     122void bncCaster::newObs(const QByteArray& staID, bool firstObs,
     123                       Observation* obs) {
    147124
    148125  QMutexLocker locker(&_mutex);
     
    157134  obs->StatID[sizeof(obs->StatID)-1] = '\0';
    158135       
    159   // Prepare RINEX Output
    160   // --------------------
    161   if (_rinexWriters) {
    162     if (_rinexWriters->find(obs->StatID) == _rinexWriters->end()) {
    163       _rinexWriters->insert(obs->StatID, new bncRinex(obs->StatID, mountPoint,
    164                                            format, latitude, longitude, nmea));
    165     }
    166     bncRinex* rnx = _rinexWriters->find(obs->StatID).value();
    167     if (_samplingRate == 0 || iSec % _samplingRate == 0) {
    168       rnx->deepCopy(obs);
    169     }
    170     rnx->dumpEpoch(_newTime);
    171   }
    172 
    173136  // First time, set the _lastDumpSec immediately
    174137  // --------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.