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

Last change on this file since 3186 was 3186, 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 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& rnxFileName,
20 const QString& sp3FileName,
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 error(const QByteArray msg);
33 void newMessage(const QByteArray msg);
34
35 private:
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 QString _mountpoint;
43 QString _outHost;
44 int _outPort;
45 QString _password;
46 QString _crdTrafo;
47 bool _CoM;
48 QTcpSocket* _outSocket;
49 int _sOpenTrial;
50 QDateTime _outSocketOpenTime;
51 double _dx;
52 double _dy;
53 double _dz;
54 double _dxr;
55 double _dyr;
56 double _dzr;
57 double _ox;
58 double _oy;
59 double _oz;
60 double _oxr;
61 double _oyr;
62 double _ozr;
63 double _sc;
64 double _scr;
65 double _t0;
66 bncoutf* _outFile;
67 bncClockRinex* _rnx;
68 bncSP3* _sp3;
69};
70
71#endif
Note: See TracBrowser for help on using the repository browser.