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

Last change on this file since 872 was 872, 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();
[872]56 void processSatellite(gpsEph* ep, int GPSweek, double GPSweeks,
57 const QString& prn, const ColumnVector& xx,
58 struct ClockOrbit::SatData* sd);
[784]59
[778]60 QTcpServer* _clkServer;
61 QTcpSocket* _clkSocket;
62 QTcpSocket* _outSocket;
[858]63 int _outSocketOpenTrial;
64 QDateTime _outSocketOpenTime;
[816]65 QFile* _outFile;
66 QFile* _logFile;
67 QTextStream* _outStream;
68 QTextStream* _logStream;
[778]69 t_bnseph* _bnseph;
70 QMutex _mutex;
71 QMap<QString, t_ephPair*> _ephList;
[847]72 bnsRinex* _rnx;
[848]73 bnsSP3* _sp3;
[756]74};
75#endif
Note: See TracBrowser for help on using the repository browser.