Changeset 2518 in ntrip for trunk/BNC/bncapp.cpp
- Timestamp:
- Aug 3, 2010, 11:06:10 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncapp.cpp
r2407 r2518 708 708 // Raw Output 709 709 //////////////////////////////////////////////////////////////////////////// 710 void bncApp::writeRawData(const QByteArray& data) { 710 void bncApp::writeRawData(const QByteArray& data, const QByteArray& staID, 711 const QByteArray& format) { 711 712 712 713 QMutexLocker locker(&_mutex); … … 718 719 _rawOutFile = new QFile(rawOutFileName); 719 720 _rawOutFile->open(QIODevice::WriteOnly); 721 722 QByteArray header = 723 "1 Version of BNC raw file\n" + 724 currentDateAndTimeGPS().toString(Qt::ISODate).toAscii(); 725 726 _rawOutFile->write(header); 720 727 } 721 728 } 722 729 723 730 if (_rawOutFile) { 731 QString chunkHeader = 732 QString("\n%1 %2 %3\n").arg(QString(staID)).arg(QString(format)).arg(data.size()); 733 _rawOutFile->write(chunkHeader.toAscii()); 724 734 _rawOutFile->write(data); 725 735 _rawOutFile->flush();
Note:
See TracChangeset
for help on using the changeset viewer.