Changeset 2518 in ntrip


Ignore:
Timestamp:
Aug 3, 2010, 11:06:10 AM (14 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncapp.cpp

    r2407 r2518  
    708708// Raw Output
    709709////////////////////////////////////////////////////////////////////////////
    710 void bncApp::writeRawData(const QByteArray& data) {
     710void bncApp::writeRawData(const QByteArray& data, const QByteArray& staID,
     711                          const QByteArray& format) {
    711712
    712713  QMutexLocker locker(&_mutex);
     
    718719      _rawOutFile = new QFile(rawOutFileName);
    719720      _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);
    720727    }
    721728  }
    722729
    723730  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());
    724734    _rawOutFile->write(data);
    725735    _rawOutFile->flush();
  • trunk/BNC/bncapp.h

    r2385 r2518  
    4444    void setConfFileName(const QString& confFileName);
    4545    QString confFileName() const {return _confFileName;}
    46     void writeRawData(const QByteArray& data);
     46    void writeRawData(const QByteArray& data, const QByteArray& staID,
     47                      const QByteArray& format);
    4748
    4849  public slots:
  • trunk/BNC/bncgetthread.cpp

    r2488 r2518  
    426426      if (_rawOutput) {
    427427        bncApp* app = (bncApp*) qApp;
    428         app->writeRawData(data);
     428        app->writeRawData(data, _staID, _format);
    429429      }
    430430
Note: See TracChangeset for help on using the changeset viewer.