Changeset 3203 in ntrip for trunk/BNC/upload/bncrtnetdecoder.h


Ignore:
Timestamp:
Mar 30, 2011, 4:49:50 PM (13 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/upload/bncrtnetdecoder.h

    r3187 r3203  
    3333#include "RTCM/GPSDecoder.h"
    3434
    35 class bncRtnetDecoder: public GPSDecoder, public bncEphUser {
     35class bncRtnetDecoder: public GPSDecoder, public bncEphUser, public QThread {
    3636 public:
    3737  bncRtnetDecoder();
    3838  ~bncRtnetDecoder();
    39   virtual t_irc Decode(char* buffer, int bufLen, std::vector<std::string>& errmsg);
     39  virtual void run();
     40  virtual t_irc Decode(char* buffer, int bufLen,
     41                       std::vector<std::string>& errmsg);
    4042 private:
    41   void readEpochTime(const QString& line);
    42   QVector<bncUploadCaster*> _caster;
    43   QString                   _buffer;
    44   bncTime                   _epoTime;
     43  void DecodeInThread();
     44  QVector<bncUploadCaster*>* _casters;
     45  QString                    _buffer;
     46  bncTime                    _epoTime;
     47  QMutex                     _mutex;
    4548};
    4649
Note: See TracChangeset for help on using the changeset viewer.