Changeset 406 in ntrip for trunk


Ignore:
Timestamp:
Feb 21, 2007, 11:12:31 AM (18 years ago)
Author:
mervart
Message:

* empty log message *

Location:
trunk/BNC
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncgetthread.cpp

    r389 r406  
    6666                           const QByteArray& nmea, int iMount) {
    6767  _decoder    = 0;
     68  _zeroDecoder= false;
    6869  _mountPoint = mountPoint;
    6970  _staID      = mountPoint.path().mid(1).toAscii();
     
    289290  // Instantiate the filter
    290291  // ----------------------
    291   if (!_decoder) {
     292  if (!_decoder && !_zeroDecoder) {
    292293    if      (_format.indexOf("RTCM_2") != -1) {
    293294      emit(newMessage("Get Data: " + _staID + " in RTCM 2.x format"));
     
    301302      emit(newMessage("Get Data: " + _staID + " in RTIGS format"));
    302303      _decoder = new RTIGSDecoder();
     304    }
     305    else if (_format.indexOf("SP3") != -1) {
     306      emit(newMessage("Get Data in SP3 format"));
     307      _zeroDecoder = true;
    303308    }
    304309    else {
     
    340345        char* data = new char[nBytes];
    341346        _socket->read(data, nBytes);
     347
     348        if (_zeroDecoder) {
     349          cout.write(data, nBytes);
     350          continue;
     351        }
     352
    342353        _decoder->Decode(data, nBytes);
    343354        delete [] data;
  • trunk/BNC/bncgetthread.h

    r366 r406  
    7474   int         _nextSleep;
    7575   int         _iMount;
     76   bool        _zeroDecoder;
    7677};
    7778
Note: See TracChangeset for help on using the changeset viewer.