Changeset 1137 in ntrip


Ignore:
Timestamp:
Oct 2, 2008, 2:10:50 PM (16 years ago)
Author:
mervart
Message:

* empty log message *

Location:
trunk/BNC
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncgetthread.cpp

    r1130 r1137  
    147147  _rnx_set_position = false;
    148148
     149
     150  // Raw Output
     151  // ----------
     152  if (false) {    // special option used for testing
     153    QByteArray rawFileName = "./" + _staID + ".raw";
     154    _rawFile = new QFile(rawFileName);
     155    _rawFile->open(QIODevice::WriteOnly);
     156  }
     157  else {
     158    _rawFile = 0;
     159  }
     160
    149161  msleep(100); //sleep 0.1 sec
    150162}
     
    163175  delete _decoder;
    164176  delete _rnx;
     177  delete _rawFile;
    165178}
    166179
     
    463476        char* data = new char[nBytes];
    464477        _socket->read(data, nBytes);
     478
     479        if (_rawFile) {
     480          _rawFile->write(data, nBytes);
     481          _rawFile->flush();
     482        }
    465483
    466484        if (_inspSegm<1) {
  • trunk/BNC/bncgetthread.h

    r1044 r1137  
    2929#include <QtNetwork>
    3030#include <QDateTime>
     31#include <QFile>
    3132
    3233#include "RTCM/GPSDecoder.h"
     
    108109   QDateTime   _decodeSucc;
    109110   QMutex      _mutex;
     111   QFile*      _rawFile;
    110112};
    111113
Note: See TracChangeset for help on using the changeset viewer.