Changeset 5424 in ntrip
- Timestamp:
- Sep 12, 2013, 4:59:56 PM (11 years ago)
- Location:
- trunk/GnssCenter/map_stations
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GnssCenter/map_stations/thriftclient.cpp
r5417 r5424 38 38 shared_ptr<TTransport> transport(new TBufferedTransport(socket)); 39 39 shared_ptr<TProtocol> protocol(new TBinaryProtocol(transport)); 40 shared_ptr<RtnetDataIf> dataHandler(new t_thrift Client(_parent));40 shared_ptr<RtnetDataIf> dataHandler(new t_thriftHandler(_parent)); 41 41 shared_ptr<TProcessor> processor(new RtnetDataProcessor(dataHandler)); 42 42 … … 56 56 } 57 57 58 // Constructor 59 ////////////////////////////////////////////////////////////////////////////// 60 t_thriftHandler::t_thriftHandler(GnssCenter::t_map_stations* parent) { 61 _parent = parent; 62 } 63 64 // Destructor 65 ////////////////////////////////////////////////////////////////////////////// 66 t_thriftHandler::~t_thriftHandler() { 67 } 68 58 69 // Handle Satellite Positions 59 70 ////////////////////////////////////////////////////////////////////////////// 60 void t_thrift Client::71 void t_thriftHandler:: 61 72 handleSatelliteXYZ(const vector<SatelliteXYZ>& svXYZList) { 62 73 cout.setf(ios::fixed); … … 73 84 // Handle Station Info 74 85 ////////////////////////////////////////////////////////////////////////////// 75 void t_thrift Client::86 void t_thriftHandler:: 76 87 handleStationInfo(const vector<StationInfo>& stationList) { 77 88 for (unsigned ii = 0; ii < stationList.size(); ii++) { … … 83 94 } 84 95 85 // Handle E och Results96 // Handle Epoch Results 86 97 ////////////////////////////////////////////////////////////////////////////// 87 void t_thrift Client::98 void t_thriftHandler:: 88 99 handleEpochResults(const RtnetEpoch& epoch) { 89 100 for (unsigned ii = 0; ii < epoch.stationResultList.size(); ii++) { -
trunk/GnssCenter/map_stations/thriftclient.h
r5416 r5424 36 36 }; 37 37 38 class t_thriftClient : public QThread, public RtnetDataIf { 38 39 class t_thriftHandler : public RtnetDataIf { 39 40 public: 40 t_thriftClient(GnssCenter::t_map_stations* parent); 41 ~t_thriftClient(); 42 virtual void run(); 43 void stop() {_stop = true;} 44 41 t_thriftHandler(GnssCenter::t_map_stations* parent); 42 ~t_thriftHandler(); 45 43 void startDataStream() {} 46 44 void registerRtnet(const RtnetInformation&) {} … … 53 51 void handleSatelliteClock(const std::vector<SatelliteClock>&) {} 54 52 void handleEpochResults(const RtnetEpoch& epoch); 55 56 53 private: 57 58 54 class t_stationCrd { 59 55 public: … … 62 58 double _z; 63 59 }; 64 65 60 GnssCenter::t_map_stations* _parent; 66 61 std::map<std::string, t_stationCrd> _stationCrd; 67 bool _stop; 62 }; 63 64 class t_thriftClient : public QThread { 65 public: 66 t_thriftClient(GnssCenter::t_map_stations* parent); 67 ~t_thriftClient(); 68 virtual void run(); 69 void stop() {_stop = true;} 70 71 private: 72 GnssCenter::t_map_stations* _parent; 73 bool _stop; 68 74 }; 69 75
Note:
See TracChangeset
for help on using the changeset viewer.