Changeset 408 in ntrip for trunk/BNC/bnccaster.cpp
- Timestamp:
- Feb 26, 2007, 6:15:18 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bnccaster.cpp
r397 r408 92 92 if (_waitTime < 1) { 93 93 _waitTime = 1; 94 }95 96 if ( settings.value("rnxPath").toString().isEmpty() ) {97 _rinexWriters = 0;98 }99 else {100 _rinexWriters = new QMap<QString, bncRinex*>;101 94 } 102 95 … … 123 116 delete _sockets; 124 117 delete _epochs; 125 delete _rinexWriters;126 }127 128 // Reconnecting129 ////////////////////////////////////////////////////////////////////////////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 }137 118 } 138 119 139 120 // New Observations 140 121 //////////////////////////////////////////////////////////////////////////// 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) { 122 void bncCaster::newObs(const QByteArray& staID, bool firstObs, 123 Observation* obs) { 147 124 148 125 QMutexLocker locker(&_mutex); … … 157 134 obs->StatID[sizeof(obs->StatID)-1] = '\0'; 158 135 159 // Prepare RINEX Output160 // --------------------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 173 136 // First time, set the _lastDumpSec immediately 174 137 // --------------------------------------------
Note:
See TracChangeset
for help on using the changeset viewer.