Changeset 11179 in ntrip for trunk/BNC/src/bncgetthread.cpp
- Timestamp:
- Nov 6, 2026, 4:05:20 PM (6 hours ago)
- File:
-
- 1 edited
-
trunk/BNC/src/bncgetthread.cpp (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bncgetthread.cpp
r11153 r11179 131 131 connect(this, SIGNAL(newMessage(QByteArray,bool)), 132 132 BNC_CORE, SLOT(slotMessage(const QByteArray,bool))); 133 connect(this, SIGNAL(newLogRecord(t_logRecord,bool)), 134 BNC_CORE, SLOT(slotLogRecord(t_logRecord,bool))); 135 t_logRecord::registerStation(_staID); 133 136 134 137 _isToBeDeleted = false; … … 330 333 _format.indexOf("RTCM2") != -1 || 331 334 _format.indexOf("RTCM 2") != -1) { 332 emit (newMessage(_staID +": Get data in RTCM 2.x format",true));335 emitFormat(": Get data in RTCM 2.x format", "RTCM2"); 333 336 _decoder = new RTCM2Decoder(_staID.data()); 334 337 } else if (_format.indexOf("RTCM_3") != -1 || 335 338 _format.indexOf("RTCM3") != -1 || 336 339 _format.indexOf("RTCM 3") != -1) { 337 emit (newMessage(_staID +": Get data in RTCM 3.x format",true));340 emitFormat(": Get data in RTCM 3.x format", "RTCM3"); 338 341 RTCM3Decoder* newDecoder = new RTCM3Decoder(_staID, _rawFile); 339 342 _decoder = newDecoder; … … 341 344 this, SIGNAL(newMessage(QByteArray,bool))); 342 345 } else if (_format == "ZERO") { 343 emit (newMessage(_staID +": Forward data in original format",true));346 emitFormat(": Forward data in original format", "ZERO"); 344 347 _decoder = new bncZeroDecoder(_staID, false); 345 348 } 346 349 else if (_format == "ZERO2FILE") { 347 emit (newMessage(_staID +": Get data in original format and store it",true));350 emitFormat(": Get data in original format and store it", "ZERO2FILE"); 348 351 _decoder = new bncZeroDecoder(_staID, true); 349 352 } 350 353 else if (_format.indexOf("RTNET") != -1) { 351 emit (newMessage(_staID +": Get data in RTNet format",true));354 emitFormat(": Get data in RTNet format", "RTNET"); 352 355 _decoder = new bncRtnetDecoder(); 353 356 } else { … … 481 484 _format = _rawFile->format(); 482 485 _staID = _rawFile->staID(); 486 t_logRecord::registerStation(_staID); 483 487 484 488 QCoreApplication::processEvents(); … … 508 512 _latencyChecker->checkReconnect(); 509 513 } 510 emit(newMessage(_staID + ": Data timeout, reconnecting", true)); 514 emit newLogRecord(t_logRecord(t_logRecord::warning, "stream", "stream_timeout", _staID, 515 _staID + ": Data timeout, reconnecting"), true); 511 516 msleep(10000); //sleep 10 sec, G. Weber 512 517 continue; … … 1143 1148 } 1144 1149 } 1150 1151 // Message on the data format of the stream 1152 //////////////////////////////////////////////////////////////////////////// 1153 void bncGetThread::emitFormat(const char* text, const char* decoder) { 1154 t_logRecord rec(t_logRecord::info, "stream", "stream_format", _staID, _staID + text); 1155 rec.add("decoder", QByteArray(decoder)) 1156 .add("format", _format); 1157 emit newLogRecord(rec, true); 1158 }
Note:
See TracChangeset
for help on using the changeset viewer.
