Changeset 9888 in ntrip for trunk/BNC/src/upload/bncrtnetuploadcaster.cpp
- Timestamp:
- Nov 21, 2022, 9:20:21 PM (22 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/upload/bncrtnetuploadcaster.cpp
r9887 r9888 299 299 // If there is there more than 1 epoch line in the buffer 300 300 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; 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 <<"== 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; 310 310 lines = rtnetStreamBuffer.split('\n', QString::SkipEmptyParts); 311 311 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; 313 313 decodeRtnetEpoch(lines); 314 314 } … … 316 316 _rtnetStreamBuffer = _rtnetStreamBuffer.mid(nextEpochEnd+3); 317 317 } 318 else if (nextEpoch != -1 && nextEpoch >= iEpoEnd) { cout << "bin hier" << endl;318 else if (nextEpoch != -1 && nextEpoch >= iEpoEnd) {//cout << "bin hier" << endl; 319 319 break; 320 320 } … … 322 322 323 323 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; 325 325 _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; 327 327 if (lines.size() < 2) { 328 328 emit(newMessage(QString("bncRtnetUploadCaster: less than 2 lines to decode : %1").arg(_casterID).toLatin1(), false)); … … 338 338 // Read first line (with epoch time) 339 339 // --------------------------------- 340 QTextStream in(epochLines[0].toLatin1()); cout << epochLines[0].toLatin1().toStdString() << " : ";340 QTextStream in(epochLines[0].toLatin1()); //cout << epochLines[0].toLatin1().toStdString() << " : "; 341 341 QString hlp; 342 342 int year, month, day, hour, min; … … 344 344 in >> hlp >> year >> month >> day >> hour >> min >> sec; 345 345 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; 347 347 348 348 emit(newMessage(
Note:
See TracChangeset
for help on using the changeset viewer.