Changeset 9888 in ntrip


Ignore:
Timestamp:
Nov 21, 2022, 9:20:21 PM (3 weeks ago)
Author:
stuerze
Message:

minor changes

File:
1 edited

Legend:

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

    r9887 r9888  
    299299  // If there is there more than 1 epoch line in the buffer
    300300  while (_rtnetStreamBuffer.count('*') > 1) {
    301     cout << "more than 1 epoch in buffer: " << _rtnetStreamBuffer.count('*') << endl;
    302     cout <<"XX MORE THAN 1 EPOCH XXX\n" << _rtnetStreamBuffer.toStdString().c_str()  << "\nXXXXXXXXXXXXXXXXX" <<endl;
     301    //cout << "more than 1 epoch in buffer: " << _rtnetStreamBuffer.count('*') << endl;
     302    //cout <<"XX MORE THAN 1 EPOCH XXX\n" << _rtnetStreamBuffer.toStdString().c_str()  << "\nXXXXXXXXXXXXXXXXX" <<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 <<"== ONE EPOCH=\n" << rtnetStreamBuffer.toStdString().c_str()  << "\n=ONE EPOCH =="<<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 (WHILE)-------------\n" << rtnetStreamBuffer.toStdString().c_str() << "\n------------------" << endl;
     312        //cout << "----------LINES 2 DECODE (IN WHILE)-------------\n" << rtnetStreamBuffer.toStdString().c_str() << "\n------------------" << endl;
    313313        decodeRtnetEpoch(lines);
    314314      }
     
    316316      _rtnetStreamBuffer = _rtnetStreamBuffer.mid(nextEpochEnd+3);
    317317    }
    318     else if (nextEpoch != -1 && nextEpoch >= iEpoEnd) {cout << "bin hier" << endl;
     318    else if (nextEpoch != -1 && nextEpoch >= iEpoEnd) {//cout << "bin hier" << endl;
    319319      break;
    320320    }
     
    322322
    323323  lines = _rtnetStreamBuffer.left(iEpoEnd).split('\n', QString::SkipEmptyParts);
    324   cout << "----------LINES 2 DECODE (OUTSIDE)-------------\n" << _rtnetStreamBuffer.left(iEpoEnd).toStdString().c_str() << "\n------------------" << endl;
     324  //cout << "----------LINES 2 DECODE (OUTSIDE)-------------\n" << _rtnetStreamBuffer.left(iEpoEnd).toStdString().c_str() << "\n------------------" << endl;
    325325  _rtnetStreamBuffer = _rtnetStreamBuffer.mid(iEpoEnd + 3);
    326   cout <<"YYYY REST OF BUFFER YYYY\n" << _rtnetStreamBuffer.toStdString().c_str()  << "\nYYYYYY" <<endl;
     326  //cout <<"YYYY REST OF BUFFER YYYY\n" << _rtnetStreamBuffer.toStdString().c_str()  << "\nYYYYYY" <<endl;
    327327  if (lines.size() < 2) {
    328328    emit(newMessage(QString("bncRtnetUploadCaster: less than 2 lines to decode : %1").arg(_casterID).toLatin1(), false));
     
    338338  // Read first line (with epoch time)
    339339  // ---------------------------------
    340   QTextStream in(epochLines[0].toLatin1()); cout << epochLines[0].toLatin1().toStdString() << " : ";
     340  QTextStream in(epochLines[0].toLatin1()); //cout << epochLines[0].toLatin1().toStdString() << " : ";
    341341  QString hlp;
    342342  int year, month, day, hour, min;
     
    344344  in >> hlp >> year >> month >> day >> hour >> min >> sec;
    345345  bncTime epoTime;
    346   epoTime.set(year, month, day, hour, min, sec); cout << "decodeEpoch: " << epoTime.timestr().c_str() << endl;
     346  epoTime.set(year, month, day, hour, min, sec); //cout << "decodeEpoch: " << epoTime.timestr().c_str() << endl;
    347347
    348348  emit(newMessage(
Note: See TracChangeset for help on using the changeset viewer.