Changeset 39 in ntrip for trunk


Ignore:
Timestamp:
May 30, 2006, 3:28:37 PM (18 years ago)
Author:
mervart
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncgetthread.cpp

    r36 r39  
    132132  // Instantiate the filter
    133133  // ----------------------
    134   RTCM rtcmFilter('A',true);
     134  GPSDecoder* rtcmFilter;
     135  rtcmFilter = new RTCM('A',true);
    135136
    136137  // Read Incoming Data
     
    142143      char* data = new char[nBytes];
    143144      _socket->read(data, nBytes);
    144       rtcmFilter.Decode(data, nBytes);
     145      rtcmFilter->Decode(data, nBytes);
    145146      delete data;
    146       for (list<Observation*>::iterator it = rtcmFilter.m_lObsList.begin();
    147            it != rtcmFilter.m_lObsList.end(); it++) {
     147      for (list<Observation*>::iterator it = rtcmFilter->m_lObsList.begin();
     148           it != rtcmFilter->m_lObsList.end(); it++) {
    148149        emit newObs(_mountPoint, *it);
    149150      }
    150       rtcmFilter.m_lObsList.clear();
     151      rtcmFilter->m_lObsList.clear();
    151152    }
    152153    else {
     
    155156    }
    156157  }
     158  delete rtcmFilter;
    157159}
    158160
Note: See TracChangeset for help on using the changeset viewer.