Changeset 5416 in ntrip for trunk/GnssCenter/map_stations/thriftclient.cpp
- Timestamp:
- Sep 10, 2013, 5:55:53 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GnssCenter/map_stations/thriftclient.cpp
r5415 r5416 5 5 6 6 #include "thriftclient.h" 7 #include "map_stations.h" 7 8 8 9 using namespace apache::thrift; … … 16 17 // Constructor 17 18 ////////////////////////////////////////////////////////////////////////////// 18 t_thriftClient::t_thriftClient( ) {19 _stop = false;20 qRegisterMetaType<t_thriftResult>("t_thriftResult");19 t_thriftClient::t_thriftClient(GnssCenter::t_map_stations* parent) { 20 _stop = false; 21 _parent = parent; 21 22 } 22 23 … … 36 37 shared_ptr<TTransport> transport(new TBufferedTransport(socket)); 37 38 shared_ptr<TProtocol> protocol(new TBinaryProtocol(transport)); 38 shared_ptr<RtnetDataIf> dataHandler(new t_thriftClient( ));39 shared_ptr<RtnetDataIf> dataHandler(new t_thriftClient(_parent)); 39 40 shared_ptr<TProcessor> processor(new RtnetDataProcessor(dataHandler)); 40 41 … … 97 98 result._z = _stationCrd[staRes.stationName]._z; 98 99 } 99 100 emit newThriftResult(result); 101 102 cout << result._name << ' ' << result._nGPS << ' ' << result._nGLO << endl; 100 _parent->slotNewThriftResult(&result); 103 101 } 104 102 }
Note:
See TracChangeset
for help on using the changeset viewer.