Ignore:
Timestamp:
Sep 10, 2013, 5:13:10 PM (9 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

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

    r5414 r5415  
    1818t_thriftClient::t_thriftClient() {
    1919  _stop = false;
     20  qRegisterMetaType<t_thriftResult>("t_thriftResult");
    2021}
    2122
     
    8687  for (unsigned ii = 0; ii < epoch.stationResultList.size(); ii++) {
    8788    const StationResults& staRes = epoch.stationResultList[ii];
    88     cout << staRes.stationName << ' '
    89          << (int) staRes.nsv_gps_used << ' ' << (int) staRes.nsv_glonass_used << ' ';
     89    t_thriftResult result;
     90   
     91    result._name = staRes.stationName;
     92    result._nGPS = staRes.nsv_gps_used;
     93    result._nGLO = staRes.nsv_glonass_used;
    9094    if (_stationCrd.find(staRes.stationName) != _stationCrd.end()) {
    91       cout << _stationCrd[staRes.stationName]._x << ' '
    92            << _stationCrd[staRes.stationName]._y << ' '
    93            << _stationCrd[staRes.stationName]._z;
     95      result._x = _stationCrd[staRes.stationName]._x;
     96      result._y = _stationCrd[staRes.stationName]._y;
     97      result._z = _stationCrd[staRes.stationName]._z;
    9498    }
    95     cout << endl;
     99
     100    emit newThriftResult(result);
     101
     102    cout << result._name << ' ' << result._nGPS << ' ' << result._nGLO << endl;
    96103  }
    97104}
Note: See TracChangeset for help on using the changeset viewer.