Changeset 349 in ntrip for trunk/BNC/bnccaster.cpp
- Timestamp:
- Dec 12, 2006, 4:59:42 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bnccaster.cpp
r347 r349 114 114 // New Observations 115 115 //////////////////////////////////////////////////////////////////////////// 116 void bncCaster::newObs(const QByteArray& staID, const QUrl& mountPoint, 117 bool firstObs, Observation* obs, 118 const QByteArray& format) { 116 int bncCaster::newObs(const QByteArray& staID, 117 bool firstObs, Observation* obs) { 119 118 120 119 QMutexLocker locker(&_mutex); … … 128 127 obs->StatID[sizeof(obs->StatID)-1] = '\0'; 129 128 130 // Prepare RINEX Output131 // --------------------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 142 129 // First time, set the _lastDumpSec immediately 143 130 // -------------------------------------------- … … 158 145 } 159 146 delete obs; 160 return ;147 return 1; 161 148 } 162 149 … … 172 159 _lastDumpSec = newTime - _waitTime; 173 160 } 161 162 return 0; 174 163 } 175 164
Note:
See TracChangeset
for help on using the changeset viewer.