Changeset 649 in ntrip


Ignore:
Timestamp:
Jan 4, 2008, 3:23:10 PM (16 years ago)
Author:
mervart
Message:

* empty log message *

Location:
trunk/BNC
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/RTCM/GPSDecoder.h

    r626 r649  
    2929#include <QPointer>
    3030#include <QList>
     31
     32#include "bncconst.h"
    3133
    3234class t_obsInternal {
     
    8789class GPSDecoder {
    8890 public:
    89   virtual void Decode(char* buffer, int bufLen) = 0;
     91  virtual t_irc Decode(char* buffer, int bufLen) = 0;
    9092
    9193  virtual ~GPSDecoder() {
  • trunk/BNC/RTCM/RTCM2Decoder.cpp

    r627 r649  
    6262//
    6363
    64 void RTCM2Decoder::Decode(char* buffer, int bufLen) {
     64t_irc RTCM2Decoder::Decode(char* buffer, int bufLen) {
    6565
    6666  _buffer.append(buffer, bufLen);
     
    7272    _PP.getPacket(_buffer);
    7373    if (!_PP.valid()) {
    74       return;
     74      return failure;
    7575    }
    7676
     
    108108    }
    109109  }
     110  return success;
    110111}
    111112
  • trunk/BNC/RTCM/RTCM2Decoder.h

    r645 r649  
    3434    RTCM2Decoder();
    3535    virtual ~RTCM2Decoder();
    36     virtual void Decode(char* buffer, int bufLen);
     36    virtual t_irc Decode(char* buffer, int bufLen);
    3737
    3838  private:
  • trunk/BNC/RTCM3/RTCM3Decoder.cpp

    r627 r649  
    8888//
    8989////////////////////////////////////////////////////////////////////////////
    90 void RTCM3Decoder::Decode(char* buffer, int bufLen) {
     90t_irc RTCM3Decoder::Decode(char* buffer, int bufLen) {
    9191
    9292  for (int ii = 0; ii < bufLen; ii++) {
     
    198198    }
    199199  }
    200 }
     200  return success;
     201}
  • trunk/BNC/RTCM3/RTCM3Decoder.h

    r645 r649  
    4747  RTCM3Decoder();
    4848  virtual ~RTCM3Decoder();
    49   virtual void Decode(char* buffer = 0, int bufLen = 0);
     49  virtual t_irc Decode(char* buffer = 0, int bufLen = 0);
    5050private:
    5151  struct RTCM3ParserData _Parser;
  • trunk/BNC/RTIGS/RTIGSDecoder.cpp

    r627 r649  
    5959//
    6060////////////////////////////////////////////////////////////////////////////
    61 void RTIGSDecoder::Decode(char* buffer, int bufLen) {
     61t_irc RTIGSDecoder::Decode(char* buffer, int bufLen) {
    6262
    6363  // Append the incomming data to the internal buffer
     
    8383  if (! found) {
    8484    _buffer.clear();
    85     return;
     85    return failure;
    8686  }
    8787
     
    9494  // ---------------------------
    9595  if (_buffer.size() < numbytes) {
    96     return;
     96    return failure;
    9797  }
    9898
     
    125125  // ----------------------------------
    126126  _buffer = _buffer.substr(numbytes);
     127
     128  return success;
    127129}
  • trunk/BNC/RTIGS/RTIGSDecoder.h

    r645 r649  
    3434  RTIGSDecoder();
    3535  virtual ~RTIGSDecoder();
    36   virtual void Decode(char* buffer = 0, int bufLen = 0);
     36  virtual t_irc Decode(char* buffer = 0, int bufLen = 0);
    3737private:
    3838  CGPS_Transform _GPSTrans;
  • trunk/BNC/bnczerodecoder.cpp

    r566 r649  
    8282// Decode Method
    8383////////////////////////////////////////////////////////////////////////
    84 void bncZeroDecoder::Decode(char* buffer, int bufLen) {
     84t_irc bncZeroDecoder::Decode(char* buffer, int bufLen) {
    8585  reopen();
    8686  _out->write(buffer, bufLen);
    8787  _out->flush();
     88  return success;
    8889}
    8990
  • trunk/BNC/bnczerodecoder.h

    r464 r649  
    3434    bncZeroDecoder(const QString& fileName);
    3535    ~bncZeroDecoder();
    36     virtual void Decode(char* buffer, int bufLen);
     36    virtual t_irc Decode(char* buffer, int bufLen);
    3737  private:
    3838    void reopen();
Note: See TracChangeset for help on using the changeset viewer.