Changeset 160 in ntrip for trunk/BNC/bnccaster.cpp
- Timestamp:
- Sep 12, 2006, 8:39:13 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bnccaster.cpp
r142 r160 83 83 long newTime = obs->GPSWeek * 7*24*3600 + obs->GPSWeeks; 84 84 85 // Rename the Station 86 // ------------------ 87 strncpy(obs->StatID, staID.constData(),sizeof(obs->StatID)); 88 89 // Prepare RINEX Output 90 // -------------------- 91 if (_rinexWriters.find(obs->StatID) == _rinexWriters.end()) { 92 _rinexWriters.insert(obs->StatID, new bncRinex(obs->StatID)); 93 } 94 bncRinex* rnx = _rinexWriters.find(obs->StatID).value(); 95 rnx->deepCopy(obs); 96 rnx->dumpEpoch(newTime); 97 85 98 // First time, set the _lastDumpSec immediately 86 99 // -------------------------------------------- … … 98 111 } 99 112 100 // Rename the station and save the observation 101 // ------------------------------------------- 102 strncpy(obs->StatID, staID.constData(),sizeof(obs->StatID)); 113 // Save the observation 114 // -------------------- 103 115 _epochs->insert(newTime, obs); 104 116 … … 196 208 } 197 209 } 198 199 // Prepare RINEX Output200 // --------------------201 if (_rinexWriters.find(obs->StatID) == _rinexWriters.end()) {202 _rinexWriters.insert(obs->StatID, new bncRinex(obs->StatID));203 }204 bncRinex* rnx = _rinexWriters.find(obs->StatID).value();205 rnx->deepCopy(obs);206 210 } 207 211 … … 210 214 first = false; 211 215 } 212 213 // Write RINEX Files 214 // ----------------- 215 QMapIterator<QString, bncRinex*> ir(_rinexWriters); 216 while (ir.hasNext()) { 217 bncRinex* rnx = ir.next().value(); 218 rnx->dumpEpoch(); 219 } 220 } 221 } 216 } 217 }
Note:
See TracChangeset
for help on using the changeset viewer.