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

Last change on this file since 5416 was 5416, checked in by mervart, 11 years ago
File size: 1.6 KB
RevLine 
[5407]1#ifndef THRIFTCLIENT_H
2#define THRIFTCLIENT_H
3
4#include <string>
5#include <map>
[5409]6#include <QThread>
[5407]7
8#include <transport/TSocket.h>
9#include <transport/TBufferTransports.h>
10#include <protocol/TBinaryProtocol.h>
11
12#include "gen-cpp/RtnetData.h"
13
14using namespace com::gpssolutions::rtnet;
15
[5416]16namespace GnssCenter {
17 class t_map_stations;
18}
19
[5415]20class t_thriftResult {
[5407]21 public:
[5415]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
[5416]38class t_thriftClient : public QThread, public RtnetDataIf {
[5415]39 public:
[5416]40 t_thriftClient(GnssCenter::t_map_stations* parent);
[5409]41 ~t_thriftClient();
42 virtual void run();
[5414]43 void stop() {_stop = true;}
[5407]44
45 void startDataStream() {}
[5416]46 void registerRtnet(const RtnetInformation&) {}
47 void handleZDAmb(const std::vector<ZDAmb>&) {}
48 void handleDDAmbresBaselines(const std::vector<DDAmbresBaseline>&) {}
[5407]49 void handleSatelliteXYZ(const std::vector<SatelliteXYZ>& svXYZList);
50 void handleStationInfo(const std::vector<StationInfo>& stationList);
[5416]51 void handleStationAuxInfo(const std::vector<StationAuxInfo>&) {}
52 void handleDGPSCorr(const std::vector<DGPSCorr>&) {}
53 void handleSatelliteClock(const std::vector<SatelliteClock>&) {}
[5407]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
[5416]65 GnssCenter::t_map_stations* _parent;
[5407]66 std::map<std::string, t_stationCrd> _stationCrd;
[5416]67 bool _stop;
[5407]68};
69
70#endif
Note: See TracBrowser for help on using the repository browser.