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

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