Ignore:
Timestamp:
Nov 10, 2022, 9:33:46 PM (18 months ago)
Author:
stuerze
Message:

minor changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/upload/bncrtnetuploadcaster.cpp

    r9869 r9871  
    275275  if (iEpoBeg == -1) {
    276276    _rtnetStreamBuffer.clear();
    277     emit(newMessage("bncRtnetUploadCaster: no Epoch line found " + _casterID.toLatin1(), false));
     277    emit(newMessage(QString("bncRtnetUploadCaster: no Epoch line found: %1").arg(_casterID).toLatin1(), false));
    278278    return;
    279279  }
     
    292292  if (iEpoEnd == -1) {
    293293    _rtnetStreamBuffer.clear();
    294     emit(newMessage("bncRtnetUploadCaster: no EOE found " + _casterID.toLatin1(), false));
     294    emit(newMessage(QString("bncRtnetUploadCaster: no EOE found: %1").arg(_casterID).toLatin1(), false));
    295295    return;
    296296  }
     
    298298  // If there is there more than 1 epoch line in the buffer
    299299  while (_rtnetStreamBuffer.count('*') > 1) {
    300     emit(newMessage("bncRtnetUploadCaster: more than 1 epoch in buffer: " + _rtnetStreamBuffer.count('*') , false));
     300    cout << "more than 1 epoch in buffer: " << _rtnetStreamBuffer.count('*') << endl;
     301    emit(newMessage(QString("bncRtnetUploadCaster: more than 1 epoch in buffer: %1").arg(_rtnetStreamBuffer.count('*')).toLatin1(), false));
    301302    QString rtnetStreamBuffer = _rtnetStreamBuffer.mid(1);
    302303    int nextEpoch = rtnetStreamBuffer.indexOf('*');
     
    306307    if      (nextEpoch != -1 && nextEpoch < iEpoEnd) {
    307308      _rtnetStreamBuffer = _rtnetStreamBuffer.mid(nextEpoch);
    308       cout <<  _rtnetStreamBuffer.toStdString().c_str() << endl;
     309      cout <<  "next Epoch:\n" << _rtnetStreamBuffer.toStdString().c_str() << endl;
     310
    309311    }
    310312    else if (nextEpoch != -1 && nextEpoch >= iEpoEnd) {
     
    312314    }
    313315    else {
    314       cout <<  _rtnetStreamBuffer.toStdString().c_str() << endl;
    315     }
     316      cout << "_rtnetStreamBuffer: \n" <<  _rtnetStreamBuffer.toStdString().c_str() << endl;
     317    }
     318    cout << "=============" << endl;
    316319  }
    317320
     
    321324
    322325  if (lines.size() < 2) {
    323     emit(newMessage(
    324           "bncRtnetUploadCaster: less than 2 lines to decode " + _casterID.toLatin1(), false));
     326    emit(newMessage(QString("bncRtnetUploadCaster: less than 2 lines to decode : %1").arg(_casterID).toLatin1(), false));
    325327    return;
    326328  }
Note: See TracChangeset for help on using the changeset viewer.