source: ntrip/trunk/BNC/upload/bncuploadcaster.h@ 3207

Last change on this file since 3207 was 3207, checked in by mervart, 13 years ago
File size: 2.1 KB
Line 
1#ifndef BNCUPLOADCASTER_H
2#define BNCUPLOADCASTER_H
3
4#include <QtNetwork>
5#include "bncephuser.h"
6#include "bnctime.h"
7
8class bncoutf;
9class bncClockRinex;
10class bncSP3;
11
12class bncUploadCaster : public QThread {
13 Q_OBJECT
14 public:
15 bncUploadCaster(const QString& mountpoint,
16 const QString& outHost, int outPort,
17 const QString& password,
18 const QString& crdTrafo, bool CoM,
19 const QString& sp3FileName,
20 const QString& rnxFileName,
21 const QString& outFileName);
22 protected:
23 virtual ~bncUploadCaster();
24 public:
25 void deleteSafely();
26 virtual void run();
27 void decodeRtnetStream(char* buffer, int bufLen,
28 const QMap<QString, bncEphUser::t_ephPair*>& ephMap);
29
30 signals:
31 void newMessage(const QByteArray msg, bool showOnScreen);
32
33 private:
34 void open();
35 void write(char* buffer, unsigned len);
36 void uploadClockOrbitBias();
37 void processSatellite(t_eph* eph, int GPSweek,
38 double GPSweeks, const QString& prn,
39 const ColumnVector& xx,
40 struct ClockOrbit::SatData* sd,
41 QString& outLine);
42 void crdTrafo(int GPSWeek, ColumnVector& xyz);
43
44 QMap<QString, t_eph*>* _ephMap;
45 bool _isToBeDeleted;
46 QMutex _mutex;
47 QString _rtnetStreamBuffer;
48 bncTime _epoTime;
49 QString _mountpoint;
50 QString _outHost;
51 int _outPort;
52 QString _password;
53 QString _crdTrafo;
54 bool _CoM;
55 QTcpSocket* _outSocket;
56 int _sOpenTrial;
57 QDateTime _outSocketOpenTime;
58 double _dx;
59 double _dy;
60 double _dz;
61 double _dxr;
62 double _dyr;
63 double _dzr;
64 double _ox;
65 double _oy;
66 double _oz;
67 double _oxr;
68 double _oyr;
69 double _ozr;
70 double _sc;
71 double _scr;
72 double _t0;
73 bncoutf* _outFile;
74 bncClockRinex* _rnx;
75 bncSP3* _sp3;
76};
77
78#endif
Note: See TracBrowser for help on using the repository browser.