Changeset 9587 in ntrip for trunk/BNC/src/bnccore.cpp
- Timestamp:
- Jan 7, 2022, 12:49:21 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bnccore.cpp
r9571 r9587 42 42 #include <sstream> 43 43 #include <QMessageBox> 44 //#include <QString> 44 45 #include <cmath> 45 46 … … 186 187 QByteArray msgLocal = msg; 187 188 if (msg.indexOf('\n') == 0) { 188 *_logStream << endl;189 *_logStream << Qt::endl; 189 190 msgLocal = msg.mid(1); 190 191 } 191 192 *_logStream << currentDateAndTimeGPS().toString("yy-MM-dd hh:mm:ss ").toLatin1().data(); 192 *_logStream << msgLocal.data() << endl;193 *_logStream << msgLocal.data() << Qt::endl; 193 194 _logStream->flush(); 194 195 _logFile->flush(); … … 391 392 if ( ! (appendFlagGPS & QIODevice::Append)) { 392 393 QString line; 393 line. sprintf(394 line.asprintf( 394 395 "%9.2f%11sN: GNSS NAV DATA M: Mixed%12sRINEX VERSION / TYPE\n", 395 396 defaultRnxNavVersion3, "", ""); … … 400 401 << _userName.toLatin1().data() 401 402 << hlp.toLatin1().data() 402 << "PGM / RUN BY / DATE" << endl;403 << "PGM / RUN BY / DATE" << Qt::endl; 403 404 404 405 QStringListIterator it(comments); … … 407 408 } 408 409 409 line. sprintf("%60sEND OF HEADER\n", "");410 line.asprintf("%60sEND OF HEADER\n", ""); 410 411 *_ephStreamGPS << line; 411 412 … … 419 420 if (! (appendFlagGPS & QIODevice::Append)) { 420 421 QString line; 421 line. sprintf("%9.2f%11sN: GPS NAV DATA%25sRINEX VERSION / TYPE\n",422 line.asprintf("%9.2f%11sN: GPS NAV DATA%25sRINEX VERSION / TYPE\n", 422 423 defaultRnxNavVersion2, "", ""); 423 424 *_ephStreamGPS << line; … … 427 428 << _userName.toLatin1().data() 428 429 << hlp.toLatin1().data() 429 << "PGM / RUN BY / DATE" << endl;430 << "PGM / RUN BY / DATE" << Qt::endl; 430 431 431 432 QStringListIterator it(comments); … … 434 435 } 435 436 436 line. sprintf("%60sEND OF HEADER\n", "");437 line.asprintf("%60sEND OF HEADER\n", ""); 437 438 *_ephStreamGPS << line; 438 439 … … 449 450 << _userName.toLatin1().data() 450 451 << hlp.toLatin1().data() 451 << "PGM / RUN BY / DATE" << endl;452 << "PGM / RUN BY / DATE" << Qt::endl; 452 453 453 454 QStringListIterator it(comments);
Note:
See TracChangeset
for help on using the changeset viewer.