Line | |
---|
1 | #ifndef THRIFTCLIENT_H
|
---|
2 | #define THRIFTCLIENT_H
|
---|
3 |
|
---|
4 | #include <string>
|
---|
5 | #include <map>
|
---|
6 | #include <QThread>
|
---|
7 |
|
---|
8 | #include <transport/TSocket.h>
|
---|
9 | #include <transport/TBufferTransports.h>
|
---|
10 | #include <protocol/TBinaryProtocol.h>
|
---|
11 |
|
---|
12 | #include "gen-cpp/RtnetData.h"
|
---|
13 |
|
---|
14 | using namespace com::gpssolutions::rtnet;
|
---|
15 |
|
---|
16 | namespace GnssCenter {
|
---|
17 | class t_map_stations;
|
---|
18 | }
|
---|
19 |
|
---|
20 | class t_thriftResult {
|
---|
21 | public:
|
---|
22 | t_thriftResult() {
|
---|
23 | _nGPS = 0;
|
---|
24 | _nGLO = 0;
|
---|
25 | _x = 0.0;
|
---|
26 | _y = 0.0;
|
---|
27 | _z = 0.0;
|
---|
28 | }
|
---|
29 | ~t_thriftResult() {}
|
---|
30 | std::string _name;
|
---|
31 | int _nGPS;
|
---|
32 | int _nGLO;
|
---|
33 | double _x;
|
---|
34 | double _y;
|
---|
35 | double _z;
|
---|
36 | };
|
---|
37 |
|
---|
38 | class t_thriftClient : public QThread, public RtnetDataIf {
|
---|
39 | public:
|
---|
40 | t_thriftClient(GnssCenter::t_map_stations* parent);
|
---|
41 | ~t_thriftClient();
|
---|
42 | virtual void run();
|
---|
43 | void stop() {_stop = true;}
|
---|
44 |
|
---|
45 | void startDataStream() {}
|
---|
46 | void registerRtnet(const RtnetInformation&) {}
|
---|
47 | void handleZDAmb(const std::vector<ZDAmb>&) {}
|
---|
48 | void handleDDAmbresBaselines(const std::vector<DDAmbresBaseline>&) {}
|
---|
49 | void handleSatelliteXYZ(const std::vector<SatelliteXYZ>& svXYZList);
|
---|
50 | void handleStationInfo(const std::vector<StationInfo>& stationList);
|
---|
51 | void handleStationAuxInfo(const std::vector<StationAuxInfo>&) {}
|
---|
52 | void handleDGPSCorr(const std::vector<DGPSCorr>&) {}
|
---|
53 | void handleSatelliteClock(const std::vector<SatelliteClock>&) {}
|
---|
54 | void handleEpochResults(const RtnetEpoch& epoch);
|
---|
55 |
|
---|
56 | private:
|
---|
57 |
|
---|
58 | class t_stationCrd {
|
---|
59 | public:
|
---|
60 | double _x;
|
---|
61 | double _y;
|
---|
62 | double _z;
|
---|
63 | };
|
---|
64 |
|
---|
65 | GnssCenter::t_map_stations* _parent;
|
---|
66 | std::map<std::string, t_stationCrd> _stationCrd;
|
---|
67 | bool _stop;
|
---|
68 | };
|
---|
69 |
|
---|
70 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.