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

Last change on this file since 847 was 847, checked in by mervart, 16 years ago

* empty log message *

File size: 1.3 KB
Line 
1#ifndef BNS_H
2#define BNS_H
3
4#include <newmat.h>
5
6#include <QtNetwork>
7#include <QThread>
8
9#include "bnseph.h"
10
11class bnsRinex;
12
13class t_ephPair {
14 public:
15 t_ephPair() {
16 eph = 0;
17 oldEph = 0;
18 }
19
20 ~t_ephPair() {
21 delete eph;
22 delete oldEph;
23 }
24
25 gpsEph* eph;
26 gpsEph* oldEph;
27};
28
29class t_bns : public QThread {
30 Q_OBJECT
31 public:
32 t_bns(QObject* parent = 0);
33 virtual ~t_bns();
34 virtual void run();
35
36 signals:
37 void newMessage(const QByteArray msg);
38 void error(const QByteArray msg);
39 void moveSocket(QThread* tt);
40
41 private slots:
42 void slotNewEph(gpsEph* ep);
43 void slotNewConnection();
44 void slotMessage(const QByteArray msg);
45 void slotError(const QByteArray msg);
46 void slotMoveSocket(QThread* tt);
47
48 private:
49 void deleteBnsEph();
50 void openCaster();
51 void readEpoch();
52 void processSatellite(int GPSweek, double GPSweeks, const QString& prn,
53 const ColumnVector& xx);
54
55 QTcpServer* _clkServer;
56 QTcpSocket* _clkSocket;
57 QTcpSocket* _outSocket;
58 QFile* _outFile;
59 QFile* _logFile;
60 QTextStream* _outStream;
61 QTextStream* _logStream;
62 t_bnseph* _bnseph;
63 QMutex _mutex;
64 QMap<QString, t_ephPair*> _ephList;
65
66 bnsRinex* _rnx;
67};
68#endif
Note: See TracBrowser for help on using the repository browser.