Changeset 9885 in ntrip for trunk/BNC


Ignore:
Timestamp:
Nov 21, 2022, 3:21:16 PM (2 years ago)
Author:
stuerze
Message:

minor changes

File:
1 edited

Legend:

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

    r9884 r9885  
    300300  while (_rtnetStreamBuffer.count('*') > 1) {
    301301    cout << "more than 1 epoch in buffer: " << _rtnetStreamBuffer.count('*') << endl;
    302     cout <<"XXXINXXX\n" << _rtnetStreamBuffer.toStdString().c_str()  << "\nXXXXX" <<endl;
     302    cout <<"XX MORE THAN 1 EPOCH XXX\n" << _rtnetStreamBuffer.toStdString().c_str()  << "\nXX MORE THAN 1 EPOCH XXX" <<endl;
    303303    emit(newMessage(QString("bncRtnetUploadCaster: more than 1 epoch in buffer: %1").arg(_rtnetStreamBuffer.count('*')).toLatin1(), false));
    304304    QString rtnetStreamBuffer = _rtnetStreamBuffer;
     
    307307    _rtnetStreamBuffer = _rtnetStreamBuffer.mid(1);
    308308    if      (nextEpoch != -1 && nextEpoch < iEpoEnd) {
    309       rtnetStreamBuffer = rtnetStreamBuffer.mid(nextEpoch, nextEpochEnd);cout <<"===\n" << rtnetStreamBuffer.toStdString().c_str()  << "\n==="<<endl;
     309      rtnetStreamBuffer = rtnetStreamBuffer.mid(nextEpoch, nextEpochEnd);cout <<"== ONE EPOCH=\n" << rtnetStreamBuffer.toStdString().c_str()  << "\n=ONE EPOCH =="<<endl;
    310310      lines = _rtnetStreamBuffer.split('\n', QString::SkipEmptyParts);
    311311      if (lines.size() > 2) {
     312        cout << "----------LINES 2 DECODE-------------\n" << _rtnetStreamBuffer.left(iEpoEnd).toStdString().c_str() << "\n------------------" << endl;
    312313        decodeRtnetEpoch(lines);
    313314      }
     
    322323
    323324  lines = _rtnetStreamBuffer.left(iEpoEnd).split('\n', QString::SkipEmptyParts);
    324  cout << "----------LINES-------------\n" << _rtnetStreamBuffer.left(iEpoEnd).toStdString().c_str() << "\n------------------" << endl;
     325
    325326  _rtnetStreamBuffer = _rtnetStreamBuffer.mid(iEpoEnd + 3);
    326   cout <<"YYYINYYY\n" << _rtnetStreamBuffer.toStdString().c_str()  << "\nYYYYYY" <<endl;
     327  cout <<"YYYY REST OF BUFFER YYYY\n" << _rtnetStreamBuffer.toStdString().c_str()  << "\nYYYYYY" <<endl;
    327328  if (lines.size() < 2) {
    328329    emit(newMessage(QString("bncRtnetUploadCaster: less than 2 lines to decode : %1").arg(_casterID).toLatin1(), false));
    329330    return;
    330331  }
    331 
     332  cout << "----------LINES 2 DECODE-------------\n" << _rtnetStreamBuffer.left(iEpoEnd).toStdString().c_str() << "\n------------------" << endl;
    332333  decodeRtnetEpoch(lines);
    333334
     
    340341  // Read first line (with epoch time)
    341342  // ---------------------------------
    342   QTextStream in(epochLines[0].toLatin1()); cout << epochLines[0].toLatin1().toStdString() << " : " << endl;
     343  QTextStream in(epochLines[0].toLatin1()); cout << epochLines[0].toLatin1().toStdString() << " : ";
    343344  QString hlp;
    344345  int year, month, day, hour, min;
Note: See TracChangeset for help on using the changeset viewer.