1 | #ifndef BNCUPLOADCASTER_H
|
---|
2 | #define BNCUPLOADCASTER_H
|
---|
3 |
|
---|
4 | #include <QtNetwork>
|
---|
5 | #include "bncephuser.h"
|
---|
6 | #include "bnctime.h"
|
---|
7 |
|
---|
8 | class bncoutf;
|
---|
9 | class bncClockRinex;
|
---|
10 | class bncSP3;
|
---|
11 |
|
---|
12 | class bncUploadCaster : public QObject {
|
---|
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 | virtual ~bncUploadCaster();
|
---|
23 | void open();
|
---|
24 | void write(char* buffer, unsigned len);
|
---|
25 | void printAscii(const QString& line);
|
---|
26 | bool usedSocket() const {return _outSocket;}
|
---|
27 | void uploadClockOrbitBias(const bncTime& epoTime,
|
---|
28 | const QMap<QString, bncEphUser::t_ephPair*>& ephMap,
|
---|
29 | const QStringList& lines);
|
---|
30 |
|
---|
31 | signals:
|
---|
32 | void newMessage(const QByteArray msg, bool showOnScreen);
|
---|
33 |
|
---|
34 | private:
|
---|
35 | void processSatellite(t_eph* eph, int GPSweek,
|
---|
36 | double GPSweeks, const QString& prn,
|
---|
37 | const ColumnVector& xx,
|
---|
38 | struct ClockOrbit::SatData* sd,
|
---|
39 | QString& outLine);
|
---|
40 | void crdTrafo(int GPSWeek, ColumnVector& xyz);
|
---|
41 | QString _mountpoint;
|
---|
42 | QString _outHost;
|
---|
43 | int _outPort;
|
---|
44 | QString _password;
|
---|
45 | QString _crdTrafo;
|
---|
46 | bool _CoM;
|
---|
47 | QTcpSocket* _outSocket;
|
---|
48 | int _sOpenTrial;
|
---|
49 | QDateTime _outSocketOpenTime;
|
---|
50 | double _dx;
|
---|
51 | double _dy;
|
---|
52 | double _dz;
|
---|
53 | double _dxr;
|
---|
54 | double _dyr;
|
---|
55 | double _dzr;
|
---|
56 | double _ox;
|
---|
57 | double _oy;
|
---|
58 | double _oz;
|
---|
59 | double _oxr;
|
---|
60 | double _oyr;
|
---|
61 | double _ozr;
|
---|
62 | double _sc;
|
---|
63 | double _scr;
|
---|
64 | double _t0;
|
---|
65 | bncoutf* _outFile;
|
---|
66 | bncClockRinex* _rnx;
|
---|
67 | bncSP3* _sp3;
|
---|
68 | };
|
---|
69 |
|
---|
70 | #endif
|
---|