source: ntrip/trunk/BNC/src/PPP/pppRun.h@ 5988

Last change on this file since 5988 was 5988, checked in by mervart, 10 years ago
File size: 1.7 KB
Line 
1#ifndef PPPRUN_H
2#define PPPRUN_H
3
4#include <deque>
5#include <vector>
6#include <QtCore>
7
8#include "GPSDecoder.h"
9#include "pppOptions.h"
10#include "pppClient.h"
11
12class t_rnxObsFile;
13class t_rnxNavFile;
14class t_corrFile;
15class bncoutf;
16
17namespace BNC_PPP {
18
19class t_pppRun : public QObject {
20 Q_OBJECT
21 public:
22 t_pppRun(const t_pppOptions* opt);
23 ~t_pppRun();
24
25 void processFiles();
26
27 signals:
28 void newMessage(QByteArray msg, bool showOnScreen);
29 void newPosition(QByteArray staID, bncTime time, QVector<double> xx);
30 void newNMEAstr(QByteArray staID, QByteArray str);
31 void progressRnxPPP(int);
32 void finishedRnxPPP();
33
34 public slots:
35 void slotNewEphGPS(gpsephemeris gpseph);
36 void slotNewEphGlonass(glonassephemeris gloeph);
37 void slotNewEphGalileo(galileoephemeris galeph);
38 void slotNewCorrections(QStringList corrList);
39 void slotNewObs(QByteArray staID, QList<t_obs> obsList);
40 void slotSetSpeed(int speed);
41 void slotSetStopFlag();
42
43 private:
44 class t_epoData {
45 public:
46 t_epoData() {}
47 ~t_epoData() {
48 for (unsigned ii = 0; ii < _satObs.size(); ii++) {
49 delete _satObs[ii];
50 }
51 }
52 bncTime _time;
53 std::vector<t_satObs*> _satObs;
54 };
55
56 QMutex _mutex;
57 const t_pppOptions* _opt;
58 t_pppClient* _pppClient;
59 std::deque<t_epoData*> _epoData;
60 int _lastOrbCorrIOD[t_prn::MAXPRN+1];
61 double _lastClkCorrValue[t_prn::MAXPRN+1];
62 bncTime _lastClkCorrTime;
63
64 t_rnxObsFile* _rnxObsFile;
65 t_rnxNavFile* _rnxNavFile;
66 t_corrFile* _corrFile;
67 int _speed;
68 bool _stopFlag;
69 bncoutf* _logFile;
70 bncoutf* _nmeaFile;
71};
72
73}
74
75#endif
Note: See TracBrowser for help on using the repository browser.