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

Last change on this file since 3182 was 3182, 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
7class bncClockRinex;
8class bncSP3;
9
10class bncUploadCaster : public QObject {
11 Q_OBJECT
12 public:
13 bncUploadCaster(const QString& mountpoint,
14 const QString& outHost, int outPort,
15 const QString& password,
16 const QString& crdTrafo, bool CoM,
17 const QString& rnxFileName,
18 const QString& sp3FileName,
19 const QString& outFileName);
20 virtual ~bncUploadCaster();
21 void open();
22 void write(char* buffer, unsigned len);
23 void printAscii(const QString& line);
24 bool usedSocket() const {return _outSocket;}
25 void uploadClockOrbitBias(const QStringList& lines,
26 const QMap<QString, bncEphUser::t_ephPair*>& ephMap,
27 int year, int month, int day,
28 int GPSweek, double GPSweeks);
29
30 signals:
31 void error(const QByteArray msg);
32 void newMessage(const QByteArray msg);
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 QFile* _outFile;
51 QTextStream* _outStream;
52 bool _append;
53 double _dx;
54 double _dy;
55 double _dz;
56 double _dxr;
57 double _dyr;
58 double _dzr;
59 double _ox;
60 double _oy;
61 double _oz;
62 double _oxr;
63 double _oyr;
64 double _ozr;
65 double _sc;
66 double _scr;
67 double _t0;
68 bncClockRinex* _rnx;
69 bncSP3* _sp3;
70};
71
72#endif
Note: See TracBrowser for help on using the repository browser.