source:
ntrip/trunk/BNS/bns.h@
861
Last change on this file since 861 was 858, checked in by , 17 years ago | |
---|---|
File size: 1.5 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 | ||
[847] | 11 | class bnsRinex; |
[848] | 12 | class bnsSP3; |
[847] | 13 | |
[778] | 14 | class t_ephPair { |
15 | public: | |
16 | t_ephPair() { | |
17 | eph = 0; | |
18 | oldEph = 0; | |
19 | } | |
20 | ||
21 | ~t_ephPair() { | |
22 | delete eph; | |
23 | delete oldEph; | |
24 | } | |
25 | ||
26 | gpsEph* eph; | |
27 | gpsEph* oldEph; | |
28 | }; | |
29 | ||
[757] | 30 | class t_bns : public QThread { |
31 | Q_OBJECT | |
[756] | 32 | public: |
[757] | 33 | t_bns(QObject* parent = 0); |
34 | virtual ~t_bns(); | |
[756] | 35 | virtual void run(); |
36 | ||
[757] | 37 | signals: |
38 | void newMessage(const QByteArray msg); | |
[760] | 39 | void error(const QByteArray msg); |
[836] | 40 | void moveSocket(QThread* tt); |
[756] | 41 | |
[758] | 42 | private slots: |
[778] | 43 | void slotNewEph(gpsEph* ep); |
[769] | 44 | void slotNewConnection(); |
[758] | 45 | void slotMessage(const QByteArray msg); |
[760] | 46 | void slotError(const QByteArray msg); |
[836] | 47 | void slotMoveSocket(QThread* tt); |
[758] | 48 | |
[756] | 49 | private: |
[763] | 50 | void deleteBnsEph(); |
[770] | 51 | void openCaster(); |
[784] | 52 | void readEpoch(); |
[799] | 53 | void processSatellite(int GPSweek, double GPSweeks, const QString& prn, |
[784] | 54 | const ColumnVector& xx); |
55 | ||
[778] | 56 | QTcpServer* _clkServer; |
57 | QTcpSocket* _clkSocket; | |
58 | QTcpSocket* _outSocket; | |
[858] | 59 | int _outSocketOpenTrial; |
60 | QDateTime _outSocketOpenTime; | |
[816] | 61 | QFile* _outFile; |
62 | QFile* _logFile; | |
63 | QTextStream* _outStream; | |
64 | QTextStream* _logStream; | |
[778] | 65 | t_bnseph* _bnseph; |
66 | QMutex _mutex; | |
67 | QMap<QString, t_ephPair*> _ephList; | |
[847] | 68 | bnsRinex* _rnx; |
[848] | 69 | bnsSP3* _sp3; |
[756] | 70 | }; |
71 | #endif |
Note:
See TracBrowser
for help on using the repository browser.