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