Changeset 457 in ntrip


Ignore:
Timestamp:
May 10, 2007, 4:35:43 PM (15 years ago)
Author:
mervart
Message:

* empty log message *

Location:
trunk/BNC/RTIGS
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/RTIGS/RTIGSDecoder.cpp

    r367 r457  
    6464  // Append the incomming data to the internal buffer
    6565  // ------------------------------------------------
    66   _buffer.append( QByteArray(buffer, bufLen) );
     66  _buffer.append(buffer, bufLen);
    6767
    6868  // Find the beginning of the message
    6969  // ---------------------------------
    7070  bool found = false;
    71   for (int ii = 0; ii < _buffer.size(); ii++) {
     71  for (unsigned ii = 0; ii < _buffer.size(); ii++) {
    7272    unsigned short xx;
    73     memcpy( (void*) &xx, &_buffer.data()[ii], sizeof(xx) );
     73    memcpy( (void*) &xx, &_buffer[ii], sizeof(xx) );
    7474    if (_GPSTrans.f_IsLittleEndian) {
    7575      SwitchBytes( (char*) &xx, sizeof(xx) );
    7676    }
    7777    if (xx == 200) {
    78       _buffer = _buffer.mid(ii);
     78      _buffer = _buffer.substr(ii);
    7979      found = true;
    8080      break;
     
    126126  // Unprocessed bytes remain in buffer
    127127  // ----------------------------------
    128   _buffer = _buffer.mid(numbytes);
     128  _buffer = _buffer.substr(numbytes);
    129129}
  • trunk/BNC/RTIGS/RTIGSDecoder.h

    r306 r457  
    2727#define RTIGSDECODER_H
    2828
    29 #include <QByteArray>
    30 
    3129#include "../RTCM/GPSDecoder.h"
    3230#include "cgps_transform.h"
     
    3937private:
    4038  CGPS_Transform _GPSTrans;
    41   QByteArray     _buffer;
     39  std::string    _buffer;
    4240} ;
    4341
Note: See TracChangeset for help on using the changeset viewer.