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

Legend:

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

    r5423 r5427  
    5757  // --------------
    5858  _thriftClient = 0;
     59  _results      = 0;
    5960}
    6061
     
    8384//
    8485/////////////////////////////////////////////////////////////////////////////
    85 void t_map_stations::slotNewThriftResult(t_thriftResult* result) {
    86   cout << result->_name << ' '
    87        << result->_nGPS << ' ' << result->_nGLO << ' '
    88        << result->_x << ' ' << result->_y << ' ' << result->_z << endl;
     86void t_map_stations::putThriftResults(std::vector<t_thriftResult*>* results) {
     87  if (_results) {
     88    while (!_results->empty()) {
     89      delete _results->back();
     90      _results->pop_back();
     91    }
     92    delete _results;
     93  }
     94  _results = results;
     95  // beg test
     96  for (unsigned ii = 0; ii < _results->size(); ii++) {
     97    const t_thriftResult* result = _results->at(ii);
     98    cout << result->_name << ' '
     99         << result->_nGPS << ' ' << result->_nGLO << ' '
     100         << result->_x << ' ' << result->_y << ' ' << result->_z << endl;
     101  }
     102  // end test
    89103}
Note: See TracChangeset for help on using the changeset viewer.