[3172] | 1 | #ifndef BNCUPLOADCASTER_H
|
---|
| 2 | #define BNCUPLOADCASTER_H
|
---|
| 3 |
|
---|
| 4 | #include <QtNetwork>
|
---|
[3182] | 5 | #include "bncephuser.h"
|
---|
[3186] | 6 | #include "bnctime.h"
|
---|
[3172] | 7 |
|
---|
[3185] | 8 | class bncoutf;
|
---|
[3182] | 9 | class bncClockRinex;
|
---|
| 10 | class bncSP3;
|
---|
| 11 |
|
---|
[3172] | 12 | class bncUploadCaster : public QObject {
|
---|
| 13 | Q_OBJECT
|
---|
| 14 | public:
|
---|
| 15 | bncUploadCaster(const QString& mountpoint,
|
---|
| 16 | const QString& outHost, int outPort,
|
---|
[3174] | 17 | const QString& password,
|
---|
| 18 | const QString& crdTrafo, bool CoM,
|
---|
[3187] | 19 | const QString& sp3FileName,
|
---|
[3182] | 20 | const QString& rnxFileName,
|
---|
[3172] | 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;}
|
---|
[3186] | 27 | void uploadClockOrbitBias(const bncTime& epoTime,
|
---|
[3182] | 28 | const QMap<QString, bncEphUser::t_ephPair*>& ephMap,
|
---|
[3186] | 29 | const QStringList& lines);
|
---|
[3172] | 30 |
|
---|
| 31 | signals:
|
---|
[3189] | 32 | void newMessage(const QByteArray msg, bool showOnScreen);
|
---|
[3172] | 33 |
|
---|
| 34 | private:
|
---|
[3182] | 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);
|
---|
[3176] | 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;
|
---|
[3182] | 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;
|
---|
[3185] | 65 | bncoutf* _outFile;
|
---|
[3182] | 66 | bncClockRinex* _rnx;
|
---|
| 67 | bncSP3* _sp3;
|
---|
[3172] | 68 | };
|
---|
| 69 |
|
---|
| 70 | #endif
|
---|