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

Last change on this file since 6584 was 6478, 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 "satObs.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 static QString nmeaString(char strType, const t_output& output);
28
29 signals:
30 void newMessage(QByteArray msg, bool showOnScreen);
31 void newPosition(QByteArray staID, bncTime time, QVector<double> xx);
32 void newNMEAstr(QByteArray staID, QByteArray str);
33 void progressRnxPPP(int);
34 void finishedRnxPPP();
35
36 public slots:
37 void slotNewGPSEph(t_ephGPS);
38 void slotNewGlonassEph(t_ephGlo);
39 void slotNewGalileoEph(t_ephGal);
40 void slotNewOrbCorrections(QList<t_orbCorr> orbCorr);
41 void slotNewClkCorrections(QList<t_clkCorr> clkCorr);
42 void slotNewCodeBiases(QList<t_satCodeBias> codeBiases);
43 void slotNewObs(QByteArray staID, QList<t_satObs> obsList);
44 void slotSetSpeed(int speed);
45 void slotSetStopFlag();
46
47 private:
48 class t_epoData {
49 public:
50 t_epoData() {}
51 ~t_epoData() {
52 for (unsigned ii = 0; ii < _satObs.size(); ii++) {
53 delete _satObs[ii];
54 }
55 }
56 bncTime _time;
57 std::vector<t_satObs*> _satObs;
58 };
59
60 bool waitForCorr(const bncTime& epoTime) const;
61
62 QMutex _mutex;
63 const t_pppOptions* _opt;
64 t_pppClient* _pppClient;
65 std::deque<t_epoData*> _epoData;
66 bncTime _lastClkCorrTime;
67 t_rnxObsFile* _rnxObsFile;
68 t_rnxNavFile* _rnxNavFile;
69 t_corrFile* _corrFile;
70 int _speed;
71 bool _stopFlag;
72 bncoutf* _logFile;
73 bncoutf* _nmeaFile;
74};
75
76}
77
78#endif
Note: See TracBrowser for help on using the repository browser.