Changeset 5429 in ntrip


Ignore:
Timestamp:
Sep 12, 2013, 5:36:26 PM (8 years ago)
Author:
mervart
Message:
 
Location:
trunk/GnssCenter/map_stations
Files:
2 edited

Legend:

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

    r5428 r5429  
    8181    _thriftClient = new t_thriftClient(this);
    8282    _thriftClient->start();
     83    slotPlotResults();
    8384  }
    8485  //// beg test
     
    9293/////////////////////////////////////////////////////////////////////////////
    9394void t_map_stations::putThriftResults(std::vector<t_thriftResult*>* results) {
     95  QMutexLocker locker(&_mutex);
    9496  if (_results) {
    9597    while (!_results->empty()) {
     
    100102  }
    101103  _results = results;
     104}
     105
     106//
     107/////////////////////////////////////////////////////////////////////////////
     108void t_map_stations::slotPlotResults() {
     109  QMutexLocker locker(&_mutex);
    102110  // beg test
    103   for (unsigned ii = 0; ii < _results->size(); ii++) {
    104     const t_thriftResult* result = _results->at(ii);
    105     cout << result->_name << ' '
    106          << result->_nGPS << ' ' << result->_nGLO << ' '
    107          << result->_x << ' ' << result->_y << ' ' << result->_z << endl;
     111  if (_results) {
     112    for (unsigned ii = 0; ii < _results->size(); ii++) {
     113      const t_thriftResult* result = _results->at(ii);
     114      cout << result->_name << ' '
     115           << result->_nGPS << ' ' << result->_nGLO << ' '
     116           << result->_x << ' ' << result->_y << ' ' << result->_z << endl;
     117    }
    108118  }
    109119  // end test
     120  QTimer::singleShot(1000, this, SLOT(slotPlotResults()));
    110121}
  • trunk/GnssCenter/map_stations/map_stations.h

    r5427 r5429  
    2525 private slots:
    2626  void slotStartThrift();
     27  void slotPlotResults();
    2728
    2829 private:
     30  QMutex                        _mutex;
    2931  t_worldPlot*                  _plot;
    3032  t_thriftClient*               _thriftClient;
Note: See TracChangeset for help on using the changeset viewer.