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

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

* empty log message *

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