Ignore:
Timestamp:
Sep 12, 2013, 5:25:18 PM (11 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GnssCenter/map_stations/thriftclient.cpp

    r5426 r5427  
    108108void t_thriftHandler::
    109109handleEpochResults(const RtnetEpoch& epoch) {
     110  vector<t_thriftResult*>* results = new vector<t_thriftResult*>;
    110111  for (unsigned ii = 0; ii < epoch.stationResultList.size(); ii++) {
    111112    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;
    117117    if (_stationCrd.find(staRes.stationName) != _stationCrd.end()) {
    118       result._x = _stationCrd[staRes.stationName]._x;
    119       result._y = _stationCrd[staRes.stationName]._y;
    120       result._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;
    121121    }
    122     _parent->slotNewThriftResult(&result);
     122    results->push_back(res);
    123123  }
     124  _parent->putThriftResults(results);
    124125}
Note: See TracChangeset for help on using the changeset viewer.