Changeset 880 in ntrip for trunk/BNC/RTCM3
- Timestamp:
- May 6, 2008, 5:23:44 PM (17 years ago)
- Location:
- trunk/BNC/RTCM3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/RTCM3/RTCM3Decoder.cpp
r689 r880 44 44 45 45 #include "RTCM3Decoder.h" 46 #include "RTCM3coDecoder.h" 46 47 #include "bncconst.h" 47 48 #include "bncapp.h" … … 69 70 // Constructor 70 71 //////////////////////////////////////////////////////////////////////////// 71 RTCM3Decoder::RTCM3Decoder() : GPSDecoder() { 72 RTCM3Decoder::RTCM3Decoder(const QString& fileName) : GPSDecoder() { 72 73 73 74 const int LEAPSECONDS = 14; /* only needed for approx. time */ … … 82 83 _Parser.GPSWeek = tim/(7*24*60*60); 83 84 _Parser.GPSTOW = tim%(7*24*60*60); 85 86 // Sub-Decoder for Clock and Orbit Corrections 87 // ------------------------------------------- 88 _coDecoder = new RTCM3coDecoder(fileName); 84 89 } 85 90 … … 87 92 //////////////////////////////////////////////////////////////////////////// 88 93 RTCM3Decoder::~RTCM3Decoder() { 94 delete _coDecoder; 89 95 } 90 96 … … 93 99 t_irc RTCM3Decoder::Decode(char* buffer, int bufLen) { 94 100 101 // Try to decode Clock and Orbit Corrections 102 // ----------------------------------------- 103 _coDecoder->Decode(buffer, bufLen); 104 105 // Remaining part decodes the Observations 106 // --------------------------------------- 95 107 bool decoded = false; 96 108 -
trunk/BNC/RTCM3/RTCM3Decoder.h
r649 r880 35 35 class ephSender : public QObject { 36 36 Q_OBJECT 37 public: 37 public: 38 38 ephSender(); 39 39 friend class RTCM3Decoder; 40 signals: 40 signals: 41 41 void newGPSEph(gpsephemeris* gpseph); 42 42 void newGlonassEph(glonassephemeris* glonasseph); 43 43 } ; 44 44 45 class RTCM3coDecoder; 46 45 47 class RTCM3Decoder : public GPSDecoder { 46 public: 47 RTCM3Decoder(); 48 public: 49 RTCM3Decoder(const QString& fileName); 48 50 virtual ~RTCM3Decoder(); 49 51 virtual t_irc Decode(char* buffer = 0, int bufLen = 0); 50 private: 52 private: 51 53 struct RTCM3ParserData _Parser; 52 ephSender _ephSender; 54 ephSender _ephSender; 55 RTCM3coDecoder* _coDecoder; 53 56 } ; 54 57
Note:
See TracChangeset
for help on using the changeset viewer.