- Timestamp:
- Nov 21, 2022, 3:21:16 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/upload/bncrtnetuploadcaster.cpp
r9884 r9885 300 300 while (_rtnetStreamBuffer.count('*') > 1) { 301 301 cout << "more than 1 epoch in buffer: " << _rtnetStreamBuffer.count('*') << endl; 302 cout <<"XX XINXXX\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; 303 303 emit(newMessage(QString("bncRtnetUploadCaster: more than 1 epoch in buffer: %1").arg(_rtnetStreamBuffer.count('*')).toLatin1(), false)); 304 304 QString rtnetStreamBuffer = _rtnetStreamBuffer; … … 307 307 _rtnetStreamBuffer = _rtnetStreamBuffer.mid(1); 308 308 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; 310 310 lines = _rtnetStreamBuffer.split('\n', QString::SkipEmptyParts); 311 311 if (lines.size() > 2) { 312 cout << "----------LINES 2 DECODE-------------\n" << _rtnetStreamBuffer.left(iEpoEnd).toStdString().c_str() << "\n------------------" << endl; 312 313 decodeRtnetEpoch(lines); 313 314 } … … 322 323 323 324 lines = _rtnetStreamBuffer.left(iEpoEnd).split('\n', QString::SkipEmptyParts); 324 cout << "----------LINES-------------\n" << _rtnetStreamBuffer.left(iEpoEnd).toStdString().c_str() << "\n------------------" << endl; 325 325 326 _rtnetStreamBuffer = _rtnetStreamBuffer.mid(iEpoEnd + 3); 326 cout <<"YYY INYYY\n" << _rtnetStreamBuffer.toStdString().c_str() << "\nYYYYYY" <<endl;327 cout <<"YYYY REST OF BUFFER YYYY\n" << _rtnetStreamBuffer.toStdString().c_str() << "\nYYYYYY" <<endl; 327 328 if (lines.size() < 2) { 328 329 emit(newMessage(QString("bncRtnetUploadCaster: less than 2 lines to decode : %1").arg(_casterID).toLatin1(), false)); 329 330 return; 330 331 } 331 332 cout << "----------LINES 2 DECODE-------------\n" << _rtnetStreamBuffer.left(iEpoEnd).toStdString().c_str() << "\n------------------" << endl; 332 333 decodeRtnetEpoch(lines); 333 334 … … 340 341 // Read first line (with epoch time) 341 342 // --------------------------------- 342 QTextStream in(epochLines[0].toLatin1()); cout << epochLines[0].toLatin1().toStdString() << " : " << endl;343 QTextStream in(epochLines[0].toLatin1()); cout << epochLines[0].toLatin1().toStdString() << " : "; 343 344 QString hlp; 344 345 int year, month, day, hour, min;
Note:
See TracChangeset
for help on using the changeset viewer.