Changeset 3578 in ntrip for trunk/BNC/GPSS


Ignore:
Timestamp:
Dec 26, 2011, 10:24:30 AM (13 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC/GPSS
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/GPSS/hassDecoder.cpp

    r3520 r3578  
    2020#include "bnctime.h"
    2121#include "bncutils.h"
     22#include "RTCM3/RTCM3coDecoder.h"
    2223
    2324using namespace std;
     
    2526// Constructor
    2627////////////////////////////////////////////////////////////////////////////
    27 hassDecoder::hassDecoder(const QString& staID) : RTCM3coDecoder(staID) {
     28hassDecoder::hassDecoder(const QString& staID) {
    2829  _GPSweeks = -1.0;
    2930}
     
    128129                     0.0, dotRao[0], dotRao[1], dotRao[2], 0.0);
    129130
    130     reopen(_fileNameSkl, _fileName, _out);   
    131     printLine(corrLine, coTime);
     131    RTCM3coDecoder::reopen(_fileNameSkl, _fileName, _out);   
     132    if (_out) {
     133      *_out << corrLine.toAscii().data() << endl;
     134      _out->flush();
     135    }
     136    emit newCorrLine(corrLine, _staID, coTime);
    132137  }
    133138
  • trunk/BNC/GPSS/hassDecoder.h

    r3505 r3578  
    55#include <QtCore>
    66
    7 #include "RTCM3/RTCM3coDecoder.h"
     7#include "bncephuser.h"
     8#include "RTCM/GPSDecoder.h"
    89
    9 class hassDecoder : public RTCM3coDecoder {
     10class hassDecoder : public bncEphUser, public GPSDecoder {
    1011Q_OBJECT
    11 
    1212 public:
    1313  hassDecoder(const QString& staID);
     
    1515  virtual t_irc Decode(char* data, int dataLen, std::vector<std::string>& errmsg);
    1616
     17 signals:
     18  void newCorrLine(QString line, QString staID, long coTime);
     19
    1720 private:
     21  std::ofstream* _out;
     22  QString        _staID;
     23  QString        _fileNameSkl;
     24  QString        _fileName;
     25  QByteArray     _buffer;
     26  double         _GPSweeks;
    1827} ;
    1928
Note: See TracChangeset for help on using the changeset viewer.