Changeset 880 in ntrip


Ignore:
Timestamp:
May 6, 2008, 5:23:44 PM (17 years ago)
Author:
mervart
Message:

* empty log message *

Location:
trunk/BNC
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/RTCM3/RTCM3Decoder.cpp

    r689 r880  
    4444
    4545#include "RTCM3Decoder.h"
     46#include "RTCM3coDecoder.h"
    4647#include "bncconst.h"
    4748#include "bncapp.h"
     
    6970// Constructor
    7071////////////////////////////////////////////////////////////////////////////
    71 RTCM3Decoder::RTCM3Decoder() : GPSDecoder() {
     72RTCM3Decoder::RTCM3Decoder(const QString& fileName) : GPSDecoder() {
    7273
    7374  const int LEAPSECONDS = 14; /* only needed for approx. time */
     
    8283  _Parser.GPSWeek = tim/(7*24*60*60);
    8384  _Parser.GPSTOW  = tim%(7*24*60*60);
     85
     86  // Sub-Decoder for Clock and Orbit Corrections
     87  // -------------------------------------------
     88  _coDecoder = new RTCM3coDecoder(fileName);
    8489}
    8590
     
    8792////////////////////////////////////////////////////////////////////////////
    8893RTCM3Decoder::~RTCM3Decoder() {
     94  delete _coDecoder;
    8995}
    9096
     
    9399t_irc RTCM3Decoder::Decode(char* buffer, int bufLen) {
    94100
     101  // Try to decode Clock and Orbit Corrections
     102  // -----------------------------------------
     103  _coDecoder->Decode(buffer, bufLen);
     104
     105  // Remaining part decodes the Observations
     106  // ---------------------------------------
    95107  bool decoded = false;
    96108
  • trunk/BNC/RTCM3/RTCM3Decoder.h

    r649 r880  
    3535class ephSender : public QObject {
    3636Q_OBJECT
    37 public:
     37 public:
    3838  ephSender();
    3939  friend class RTCM3Decoder;
    40 signals:
     40 signals:
    4141  void newGPSEph(gpsephemeris* gpseph);
    4242  void newGlonassEph(glonassephemeris* glonasseph);
    4343} ;
    4444
     45class RTCM3coDecoder;
     46
    4547class RTCM3Decoder : public GPSDecoder {
    46 public:
    47   RTCM3Decoder();
     48 public:
     49  RTCM3Decoder(const QString& fileName);
    4850  virtual ~RTCM3Decoder();
    4951  virtual t_irc Decode(char* buffer = 0, int bufLen = 0);
    50 private:
     52 private:
    5153  struct RTCM3ParserData _Parser;
    52   ephSender _ephSender;
     54  ephSender              _ephSender;
     55  RTCM3coDecoder*        _coDecoder;
    5356} ;
    5457
  • trunk/BNC/bncgetthread.cpp

    r875 r880  
    5555#include "RTCM/RTCM2Decoder.h"
    5656#include "RTCM3/RTCM3Decoder.h"
    57 #include "RTCM3/RTCM3coDecoder.h"
    5857#include "RTIGS/RTIGSDecoder.h"
    5958
     
    369368    else if (_format.indexOf("RTCM_3") != -1) {
    370369      emit(newMessage("Get Data: " + _staID + " in RTCM 3.x format"));
    371       _decoder = new RTCM3Decoder();
     370      _decoder = new RTCM3Decoder(_staID);
    372371    }
    373372    else if (_format.indexOf("RTIGS") != -1) {
    374373      emit(newMessage("Get Data: " + _staID + " in RTIGS format"));
    375374      _decoder = new RTIGSDecoder();
    376     }
    377     else if (_format.indexOf("SP3") != -1) {
    378       emit(newMessage("Get Corrections: " + _staID + " in RTCM 3.x format"));
    379       _decoder = new RTCM3coDecoder(_staID);
    380375    }
    381376    else if (_format.indexOf("ZERO") != -1) {
Note: See TracChangeset for help on using the changeset viewer.