source: ntrip/trunk/BNS/bns.h@ 1740

Last change on this file since 1740 was 1740, checked in by weber, 15 years ago

* empty log message *

File size: 1.9 KB
RevLine 
[756]1#ifndef BNS_H
2#define BNS_H
3
[784]4#include <newmat.h>
5
[769]6#include <QtNetwork>
[756]7#include <QThread>
8
[758]9#include "bnseph.h"
[1062]10#include "bnscaster.h"
[863]11extern "C" {
12#include "RTCM/clock_orbit_rtcm.h"
13}
[758]14
[847]15class bnsRinex;
[848]16class bnsSP3;
[847]17
[778]18class t_ephPair {
19 public:
20 t_ephPair() {
21 eph = 0;
22 oldEph = 0;
23 }
24
25 ~t_ephPair() {
26 delete eph;
27 delete oldEph;
28 }
29
[873]30 ColumnVector xx;
[884]31 t_eph* eph;
32 t_eph* oldEph;
[778]33};
34
[757]35class t_bns : public QThread {
36 Q_OBJECT
[756]37 public:
[757]38 t_bns(QObject* parent = 0);
39 virtual ~t_bns();
[756]40 virtual void run();
41
[757]42 signals:
[1058]43 void newClkBytes(int nBytes);
44 void newEphBytes(int nBytes);
[1258]45 void newOutBytes1(int nBytes);
46 void newOutBytes2(int nBytes);
[1740]47 void newOutBytes3(int nBytes);
[757]48 void newMessage(const QByteArray msg);
[760]49 void error(const QByteArray msg);
[836]50 void moveSocket(QThread* tt);
[756]51
[758]52 private slots:
[1058]53 void slotNewEph(t_eph* ep, int nBytes);
[769]54 void slotNewConnection();
[758]55 void slotMessage(const QByteArray msg);
[760]56 void slotError(const QByteArray msg);
[836]57 void slotMoveSocket(QThread* tt);
[758]58
[756]59 private:
[763]60 void deleteBnsEph();
[770]61 void openCaster();
[784]62 void readEpoch();
[1733]63 void processSatellite(int oldEph, int iCaster, bool trafo, bool beClocks,
64 t_eph* ep, int GPSweek, double GPSweeks,
65 const QString& prn, const ColumnVector& xx,
66 struct ClockOrbit::SatData* sd, QString& outLine);
[986]67 void crdTrafo(int GPSWeek, ColumnVector& xyz);
[784]68
[778]69 QTcpServer* _clkServer;
70 QTcpSocket* _clkSocket;
[1066]71 QList<t_bnscaster*> _caster;
[816]72 QFile* _logFile;
73 QTextStream* _logStream;
[1072]74 QFile* _echoFile;
75 QTextStream* _echoStream;
[778]76 t_bnseph* _bnseph;
77 QMutex _mutex;
78 QMap<QString, t_ephPair*> _ephList;
[847]79 bnsRinex* _rnx;
[848]80 bnsSP3* _sp3;
[1197]81 QByteArray _clkLine;
[756]82};
83#endif
Note: See TracBrowser for help on using the repository browser.