source: ntrip/trunk/BNC/src/pppRun.h@ 6137

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