Changeset 6519 in ntrip for trunk/BNC/src/bnccore.cpp
- Timestamp:
- Dec 30, 2014, 3:04:57 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bnccore.cpp
r6486 r6519 207 207 //////////////////////////////////////////////////////////////////////////// 208 208 void t_bncCore::slotNewGPSEph(t_ephGPS eph) { 209 210 QMutexLocker locker(&_mutex); 209 QMutexLocker locker(&_mutex); 210 211 t_irc irc = _ephUser.putNewEph(&eph, true); 212 if (eph.checkState() == t_eph::bad) { 213 return; 214 } 211 215 212 216 emit newGPSEph(eph); 213 217 214 218 printEphHeader(); 215 216 if (_ephUser.putNewEph(&eph, true) == success) { 217 printEph(eph, true); 218 } 219 else { 220 printEph(eph, false); 221 } 219 printEph(eph, (irc == success)); 222 220 } 223 221 … … 225 223 //////////////////////////////////////////////////////////////////////////// 226 224 void t_bncCore::slotNewGlonassEph(t_ephGlo eph) { 227 228 QMutexLocker locker(&_mutex); 225 QMutexLocker locker(&_mutex); 226 227 t_irc irc = _ephUser.putNewEph(&eph, true); 228 if (eph.checkState() == t_eph::bad) { 229 return; 230 } 229 231 230 232 emit newGlonassEph(eph); 231 233 232 234 printEphHeader(); 233 234 if (_ephUser.putNewEph(&eph, true) == success) { 235 printEph(eph, true); 236 } 237 else { 238 printEph(eph, false); 239 } 235 printEph(eph, (irc == success)); 240 236 } 241 237 … … 243 239 //////////////////////////////////////////////////////////////////////////// 244 240 void t_bncCore::slotNewGalileoEph(t_ephGal eph) { 245 246 QMutexLocker locker(&_mutex); 241 QMutexLocker locker(&_mutex); 242 243 t_irc irc = _ephUser.putNewEph(&eph, true); 244 if (eph.checkState() == t_eph::bad) { 245 return; 246 } 247 247 248 248 emit newGalileoEph(eph); 249 249 250 250 printEphHeader(); 251 252 if (_ephUser.putNewEph(&eph, true) == success) { 253 printEph(eph, true); 254 } 255 else { 256 printEph(eph, false); 257 } 251 printEph(eph, (irc == success)); 258 252 } 259 253 … … 261 255 //////////////////////////////////////////////////////////////////////////// 262 256 void t_bncCore::slotNewSBASEph(t_ephSBAS eph) { 263 264 QMutexLocker locker(&_mutex); 257 QMutexLocker locker(&_mutex); 258 259 t_irc irc = _ephUser.putNewEph(&eph, true); 260 if (eph.checkState() == t_eph::bad) { 261 return; 262 } 265 263 266 264 emit newSBASEph(eph); 267 265 268 266 printEphHeader(); 269 270 if (_ephUser.putNewEph(&eph, true) == success) { 271 printEph(eph, true); 272 } 273 else { 274 printEph(eph, false); 275 } 267 printEph(eph, (irc == success)); 276 268 } 277 269
Note:
See TracChangeset
for help on using the changeset viewer.