Changeset 5427 in ntrip for trunk/GnssCenter/map_stations/thriftclient.cpp
- Timestamp:
- Sep 12, 2013, 5:25:18 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GnssCenter/map_stations/thriftclient.cpp
r5426 r5427 108 108 void t_thriftHandler:: 109 109 handleEpochResults(const RtnetEpoch& epoch) { 110 vector<t_thriftResult*>* results = new vector<t_thriftResult*>; 110 111 for (unsigned ii = 0; ii < epoch.stationResultList.size(); ii++) { 111 112 const StationResults& staRes = epoch.stationResultList[ii]; 112 t_thriftResult result; 113 114 result._name = staRes.stationName; 115 result._nGPS = staRes.nsv_gps_used; 116 result._nGLO = staRes.nsv_glonass_used; 113 t_thriftResult* res = new t_thriftResult; 114 res->_name = staRes.stationName; 115 res->_nGPS = staRes.nsv_gps_used; 116 res->_nGLO = staRes.nsv_glonass_used; 117 117 if (_stationCrd.find(staRes.stationName) != _stationCrd.end()) { 118 res ult._x = _stationCrd[staRes.stationName]._x;119 res ult._y = _stationCrd[staRes.stationName]._y;120 res ult._z = _stationCrd[staRes.stationName]._z;118 res->_x = _stationCrd[staRes.stationName]._x; 119 res->_y = _stationCrd[staRes.stationName]._y; 120 res->_z = _stationCrd[staRes.stationName]._z; 121 121 } 122 _parent->slotNewThriftResult(&result);122 results->push_back(res); 123 123 } 124 _parent->putThriftResults(results); 124 125 }
Note:
See TracChangeset
for help on using the changeset viewer.