source: ntrip/trunk/GnssCenter/map_stations/thriftclient.h@ 5415

Last change on this file since 5415 was 5415, checked in by mervart, 11 years ago
File size: 1.6 KB
Line 
1#ifndef THRIFTCLIENT_H
2#define THRIFTCLIENT_H
3
4#include <string>
5#include <map>
6#include <QThread>
7#include <QMetaType>
8
9#include <transport/TSocket.h>
10#include <transport/TBufferTransports.h>
11#include <protocol/TBinaryProtocol.h>
12
13#include "gen-cpp/RtnetData.h"
14
15using namespace com::gpssolutions::rtnet;
16
17class t_thriftResult {
18 public:
19 t_thriftResult() {
20 _nGPS = 0;
21 _nGLO = 0;
22 _x = 0.0;
23 _y = 0.0;
24 _z = 0.0;
25 }
26 ~t_thriftResult() {}
27 std::string _name;
28 int _nGPS;
29 int _nGLO;
30 double _x;
31 double _y;
32 double _z;
33};
34
35class t_thriftClient : public QThread, public com::gpssolutions::rtnet::RtnetDataIf {
36 Q_OBJECT
37 public:
38 t_thriftClient();
39 ~t_thriftClient();
40 virtual void run();
41 void stop() {_stop = true;}
42
43 void startDataStream() {}
44 void registerRtnet(const RtnetInformation& info) {}
45 void handleZDAmb(const std::vector<ZDAmb>& ambList) {}
46 void handleDDAmbresBaselines(const std::vector<DDAmbresBaseline>& ambList) {}
47 void handleSatelliteXYZ(const std::vector<SatelliteXYZ>& svXYZList);
48 void handleStationInfo(const std::vector<StationInfo>& stationList);
49 void handleStationAuxInfo(const std::vector<StationAuxInfo>& stationAuxList) {}
50 void handleDGPSCorr(const std::vector<DGPSCorr>& dgpsList) {}
51 void handleSatelliteClock(const std::vector<SatelliteClock>& svList) {}
52 void handleEpochResults(const RtnetEpoch& epoch);
53
54 signals:
55 void newThriftResult(t_thriftResult);
56
57 private:
58
59 class t_stationCrd {
60 public:
61 double _x;
62 double _y;
63 double _z;
64 };
65
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.