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

Last change on this file since 846 was 836, checked in by mervart, 17 years ago

* empty log message *

File size: 1.3 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"
10
[778]11class 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]27class 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);
[836]37 void moveSocket(QThread* tt);
[756]38
[758]39 private slots:
[778]40 void slotNewEph(gpsEph* ep);
[769]41 void slotNewConnection();
[758]42 void slotMessage(const QByteArray msg);
[760]43 void slotError(const QByteArray msg);
[836]44 void slotMoveSocket(QThread* tt);
[758]45
[756]46 private:
[763]47 void deleteBnsEph();
[770]48 void openCaster();
[784]49 void readEpoch();
[799]50 void processSatellite(int GPSweek, double GPSweeks, const QString& prn,
[784]51 const ColumnVector& xx);
52
[778]53 QTcpServer* _clkServer;
54 QTcpSocket* _clkSocket;
55 QTcpSocket* _outSocket;
[816]56 QFile* _outFile;
57 QFile* _logFile;
58 QTextStream* _outStream;
59 QTextStream* _logStream;
[778]60 t_bnseph* _bnseph;
61 QMutex _mutex;
62 QMap<QString, t_ephPair*> _ephList;
[756]63};
64#endif
Note: See TracBrowser for help on using the repository browser.