source:
ntrip/trunk/BNS/bns.h@
802
Last change on this file since 802 was 799, checked in by , 17 years ago | |
---|---|
File size: 1.1 KB |
Rev | Line | |
---|---|---|
[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" |
10 | ||
[778] | 11 | class t_ephPair { |
12 | public: | |
13 | t_ephPair() { | |
14 | eph = 0; | |
15 | oldEph = 0; | |
16 | } | |
17 | ||
18 | ~t_ephPair() { | |
19 | delete eph; | |
20 | delete oldEph; | |
21 | } | |
22 | ||
23 | gpsEph* eph; | |
24 | gpsEph* oldEph; | |
25 | }; | |
26 | ||
[757] | 27 | class t_bns : public QThread { |
28 | Q_OBJECT | |
[756] | 29 | public: |
[757] | 30 | t_bns(QObject* parent = 0); |
31 | virtual ~t_bns(); | |
[756] | 32 | virtual void run(); |
33 | ||
[757] | 34 | signals: |
35 | void newMessage(const QByteArray msg); | |
[760] | 36 | void error(const QByteArray msg); |
[756] | 37 | |
[758] | 38 | private slots: |
[778] | 39 | void slotNewEph(gpsEph* ep); |
[769] | 40 | void slotNewConnection(); |
[758] | 41 | void slotMessage(const QByteArray msg); |
[760] | 42 | void slotError(const QByteArray msg); |
[758] | 43 | |
[756] | 44 | private: |
[763] | 45 | void deleteBnsEph(); |
[770] | 46 | void openCaster(); |
[784] | 47 | void readEpoch(); |
[799] | 48 | void processSatellite(int GPSweek, double GPSweeks, const QString& prn, |
[784] | 49 | const ColumnVector& xx); |
50 | ||
[778] | 51 | QTcpServer* _clkServer; |
52 | QTcpSocket* _clkSocket; | |
53 | QTcpSocket* _outSocket; | |
54 | t_bnseph* _bnseph; | |
55 | QMutex _mutex; | |
56 | QMap<QString, t_ephPair*> _ephList; | |
[756] | 57 | }; |
58 | #endif |
Note:
See TracBrowser
for help on using the repository browser.