source:
ntrip/trunk/BNC/src/PPP/pppThread.h@
5844
Last change on this file since 5844 was 5840, checked in by , 10 years ago | |
---|---|
File size: 1.4 KB |
Rev | Line | |
---|---|---|
[5680] | 1 | #ifndef PPPTHREAD_H |
2 | #define PPPTHREAD_H | |
[4757] | 3 | |
[5791] | 4 | #include <deque> |
[4757] | 5 | #include <vector> |
[5719] | 6 | #include <QtCore> |
[4757] | 7 | |
[5738] | 8 | #include "GPSDecoder.h" |
[5810] | 9 | #include "pppOptions.h" |
[5742] | 10 | #include "pppClient.h" |
[4757] | 11 | |
[5814] | 12 | namespace BNC_PPP { |
[5719] | 13 | |
[5731] | 14 | class t_pppRun : public QObject { |
[4757] | 15 | Q_OBJECT |
16 | public: | |
[5810] | 17 | t_pppRun(const t_pppOptions* opt); |
[5731] | 18 | ~t_pppRun(); |
[4757] | 19 | |
[5766] | 20 | signals: |
21 | void newMessage(QByteArray msg, bool showOnScreen); | |
22 | ||
[4757] | 23 | public slots: |
24 | void slotNewEphGPS(gpsephemeris gpseph); | |
25 | void slotNewEphGlonass(glonassephemeris gloeph); | |
26 | void slotNewEphGalileo(galileoephemeris galeph); | |
[5732] | 27 | void slotNewCorrections(QStringList corrList); |
[5525] | 28 | void slotNewObs(QByteArray staID, QList<t_obs> obsList); |
[4757] | 29 | |
30 | private: | |
[5833] | 31 | class t_epoData { |
[5817] | 32 | public: |
[5833] | 33 | t_epoData() {} |
34 | ~t_epoData() { | |
[5823] | 35 | for (unsigned ii = 0; ii < _satObs.size(); ii++) { |
36 | delete _satObs[ii]; | |
[5817] | 37 | } |
38 | } | |
[5823] | 39 | bncTime _time; |
40 | std::vector<t_satObs*> _satObs; | |
[5817] | 41 | }; |
42 | ||
[5833] | 43 | QMutex _mutex; |
44 | const t_pppOptions* _opt; | |
45 | t_pppClient* _pppClient; | |
46 | std::deque<t_epoData*> _epoData; | |
[5840] | 47 | int _lastOrbCorrIOD[t_prn::MAXPRN+1]; |
48 | double _lastClkCorrValue[t_prn::MAXPRN+1]; | |
[4757] | 49 | }; |
50 | ||
[5813] | 51 | class t_pppThread : public QThread { |
[5766] | 52 | Q_OBJECT |
[5731] | 53 | public: |
[5813] | 54 | t_pppThread(const t_pppOptions* opt); |
55 | ~t_pppThread(); | |
[5731] | 56 | virtual void run(); |
57 | ||
[5766] | 58 | signals: |
59 | void newMessage(QByteArray msg, bool showOnScreen); | |
60 | ||
[5731] | 61 | private: |
[5810] | 62 | const t_pppOptions* _opt; |
[5833] | 63 | t_pppRun* _pppRun; |
[5731] | 64 | }; |
65 | ||
[5719] | 66 | } |
67 | ||
[4757] | 68 | #endif |
Note:
See TracBrowser
for help on using the repository browser.