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

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