Changeset 2385 in ntrip


Ignore:
Timestamp:
Mar 26, 2010, 11:26:46 AM (14 years ago)
Author:
mervart
Message:

* empty log message *

Location:
trunk/BNC
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncapp.cpp

    r2257 r2385  
    6161  _logStream   = 0;
    6262  _caster      = 0;
     63  _rawOutFile  = 0;
    6364
    6465  // Lists of Ephemeris
     
    128129
    129130  delete _currentDateAndTimeGPS;
     131
     132  delete _rawOutFile;
    130133}
    131134
     
    703706  }
    704707}
     708
     709// Raw Output
     710////////////////////////////////////////////////////////////////////////////
     711void bncApp::writeRawData(const QByteArray& data) {
     712
     713////  QMutexLocker locker(&_mutex);
     714////
     715////  if (!_rawOutFile) {
     716////    QByteArray rawOutFileName = "./bnc.raw";
     717////    _rawOutFile = new QFile(rawOutFileName);
     718////    _rawOutFile->open(QIODevice::WriteOnly);
     719////  }
     720////
     721////  _rawOutFile->write(data);
     722////  _rawOutFile->flush();
     723}
  • trunk/BNC/bncapp.h

    r2181 r2385  
    4444    void setConfFileName(const QString& confFileName);
    4545    QString confFileName() const {return _confFileName;}
     46    void writeRawData(const QByteArray& data);
    4647
    4748  public slots:
     
    7374
    7475    QFile*            _logFile;
     76    QFile*            _rawOutFile;
    7577    QTextStream*      _logStream;
    7678    int               _logFileFlag;
  • trunk/BNC/bncgetthread.cpp

    r2356 r2385  
    122122  _query         = 0;
    123123  _nextSleep     = 0;
    124   _rawOutFile    = 0;
    125124  _PPPclient     = 0;
    126125
     
    277276    }
    278277  }
    279 
    280   // Raw Output
    281   // ----------
    282   // QByteArray rawOutFileName = "./" + _staID + ".raw";
    283   // _rawOutFile = new QFile(rawOutFileName);
    284   // _rawOutFile->open(QIODevice::WriteOnly);
    285278
    286279  // Initialize PPP Client?
     
    347340  delete _rnx;
    348341  delete _rawInpFile;
    349   delete _rawOutFile;
    350342  delete _serialOutFile;
    351343  delete _serialPort;
     
    418410      // Output Data
    419411      // -----------
    420       if (_rawOutFile) {
    421         _rawOutFile->write(data);
    422         _rawOutFile->flush();
    423       }
     412      bncApp* app = (bncApp*) qApp;
     413      app->writeRawData(data);
     414
    424415      if (_serialPort) {
    425416        slotSerialReadyRead();
  • trunk/BNC/bncgetthread.h

    r2356 r2385  
    117117   int             _samplingRate;
    118118   bncRinex*       _rnx;
    119    QFile*          _rawOutFile;
    120119   QFile*          _rawInpFile;
    121120   QextSerialPort* _serialPort;
Note: See TracChangeset for help on using the changeset viewer.