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

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

* empty log message *

File size: 1.7 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
[873]29 ColumnVector xx;
[884]30 t_eph* eph;
31 t_eph* oldEph;
[778]32};
33
[757]34class t_bns : public QThread {
35 Q_OBJECT
[756]36 public:
[757]37 t_bns(QObject* parent = 0);
38 virtual ~t_bns();
[756]39 virtual void run();
40
[757]41 signals:
42 void newMessage(const QByteArray msg);
[760]43 void error(const QByteArray msg);
[836]44 void moveSocket(QThread* tt);
[756]45
[758]46 private slots:
[884]47 void slotNewEph(t_eph* ep);
[769]48 void slotNewConnection();
[758]49 void slotMessage(const QByteArray msg);
[760]50 void slotError(const QByteArray msg);
[836]51 void slotMoveSocket(QThread* tt);
[758]52
[756]53 private:
[763]54 void deleteBnsEph();
[770]55 void openCaster();
[784]56 void readEpoch();
[923]57 void processSatellite(int oldEph, t_eph* ep, int GPSweek, double GPSweeks,
[872]58 const QString& prn, const ColumnVector& xx,
59 struct ClockOrbit::SatData* sd);
[986]60 void crdTrafo(int GPSWeek, ColumnVector& xyz);
[784]61
[778]62 QTcpServer* _clkServer;
63 QTcpSocket* _clkSocket;
64 QTcpSocket* _outSocket;
[858]65 int _outSocketOpenTrial;
66 QDateTime _outSocketOpenTime;
[816]67 QFile* _outFile;
68 QFile* _logFile;
69 QTextStream* _outStream;
70 QTextStream* _logStream;
[778]71 t_bnseph* _bnseph;
72 QMutex _mutex;
73 QMap<QString, t_ephPair*> _ephList;
[847]74 bnsRinex* _rnx;
[848]75 bnsSP3* _sp3;
[984]76 bool _crdTrafo;
[756]77};
78#endif
Note: See TracBrowser for help on using the repository browser.