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

Last change on this file since 3209 was 3209, checked in by mervart, 13 years ago
File size: 2.0 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
29 signals:
30 void newMessage(const QByteArray msg, bool showOnScreen);
31
32 private:
33 void open();
34 void write(char* buffer, unsigned len);
35 void uploadClockOrbitBias();
36 void processSatellite(t_eph* eph, int GPSweek,
37 double GPSweeks, const QString& prn,
38 const ColumnVector& xx,
39 struct ClockOrbit::SatData* sd,
40 QString& outLine);
41 void crdTrafo(int GPSWeek, ColumnVector& xyz);
42
43 bncEphUser* _ephUser;
44 bool _isToBeDeleted;
45 QMutex _mutex;
46 QString _rtnetStreamBuffer;
47 bncTime _epoTime;
48 QString _mountpoint;
49 QString _outHost;
50 int _outPort;
51 QString _password;
52 QString _crdTrafo;
53 bool _CoM;
54 QTcpSocket* _outSocket;
55 int _sOpenTrial;
56 QDateTime _outSocketOpenTime;
57 double _dx;
58 double _dy;
59 double _dz;
60 double _dxr;
61 double _dyr;
62 double _dzr;
63 double _ox;
64 double _oy;
65 double _oz;
66 double _oxr;
67 double _oyr;
68 double _ozr;
69 double _sc;
70 double _scr;
71 double _t0;
72 bncoutf* _outFile;
73 bncClockRinex* _rnx;
74 bncSP3* _sp3;
75};
76
77#endif
Note: See TracBrowser for help on using the repository browser.