Changeset 2518 in ntrip
- Timestamp:
- Aug 3, 2010, 11:06:10 AM (14 years ago)
- Location:
- trunk/BNC
- Files:
-
- 3 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(); -
trunk/BNC/bncapp.h
r2385 r2518 44 44 void setConfFileName(const QString& confFileName); 45 45 QString confFileName() const {return _confFileName;} 46 void writeRawData(const QByteArray& data); 46 void writeRawData(const QByteArray& data, const QByteArray& staID, 47 const QByteArray& format); 47 48 48 49 public slots: -
trunk/BNC/bncgetthread.cpp
r2488 r2518 426 426 if (_rawOutput) { 427 427 bncApp* app = (bncApp*) qApp; 428 app->writeRawData(data );428 app->writeRawData(data, _staID, _format); 429 429 } 430 430
Note:
See TracChangeset
for help on using the changeset viewer.