Changeset 1139 in ntrip for trunk/BNC/bncgetthread.cpp


Ignore:
Timestamp:
Oct 2, 2008, 3:59:30 PM (16 years ago)
Author:
mervart
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncgetthread.cpp

    r1138 r1139  
    6565                           const QByteArray& format) {
    6666
    67   _decoder    = 0;
    68   _socket     = 0;
    69   _rawOutFile = 0;
    7067  _format     = format;
    71  
     68
     69  initialize();
     70
     71  _inspSegm = 0;
     72
     73  _staID = "SASS"; 
    7274  _rawInpFile = new QFile(rawInpFileName);
    7375  _rawInpFile->open(QIODevice::ReadOnly);
     
    8284  setTerminationEnabled(true);
    8385
    84   _decoder    = 0;
    8586  _mountPoint = mountPoint;
    8687  _staID      = mountPoint.path().mid(1).toAscii();
     
    9091  _longitude  = longitude;
    9192  _nmea       = nmea;
     93  _iMount     = iMount;   // index in mountpoints array
     94
     95  initialize();
     96}
     97
     98void bncGetThread::initialize() {
     99
     100  _decoder    = 0;
    92101  _socket     = 0;
    93   _timeOut    = 20*1000;  // 20 seconds
    94   _nextSleep  =  1;       //  1 second
    95   _iMount     = iMount;   // index in mountpoints array
     102  _timeOut    = 20*1000; // 20 seconds
     103  _nextSleep  = 1;       //  1 second
    96104  _rawInpFile = 0;
     105  _rawOutFile = 0;
    97106
    98107  // Check name conflict
     
    156165  }
    157166  else {
    158     _rnx = new bncRinex(_staID, mountPoint, format, latitude, longitude, nmea);
     167    _rnx = new bncRinex(_staID, _mountPoint,
     168                        _format, _latitude, _longitude, _nmea);
    159169  }
    160170  _rnx_set_position = false;
    161 
    162171
    163172  // Raw Output
    164173  // ----------
    165   if (false) {    // special option used for testing
    166     QByteArray rawOutFileName = "./" + _staID + ".raw";
    167     _rawOutFile = new QFile(rawOutFileName);
    168     _rawOutFile->open(QIODevice::WriteOnly);
    169   }
    170   else {
    171     _rawOutFile = 0;
    172   }
     174  QByteArray rawOutFileName = "./" + _staID + ".raw";
     175  _rawOutFile = new QFile(rawOutFileName);
     176  _rawOutFile->open(QIODevice::WriteOnly);
    173177
    174178  msleep(100); //sleep 0.1 sec
     
    493497      }
    494498      else if (_rawInpFile) {
    495         const qint64 maxBytes = 1024;
     499        const qint64 maxBytes = 10000;
    496500        nBytes = maxBytes;
    497501      }
Note: See TracChangeset for help on using the changeset viewer.