Changeset 5429 in ntrip for trunk/GnssCenter/map_stations
- Timestamp:
- Sep 12, 2013, 5:36:26 PM (11 years ago)
- Location:
- trunk/GnssCenter/map_stations
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GnssCenter/map_stations/map_stations.cpp
r5428 r5429 81 81 _thriftClient = new t_thriftClient(this); 82 82 _thriftClient->start(); 83 slotPlotResults(); 83 84 } 84 85 //// beg test … … 92 93 ///////////////////////////////////////////////////////////////////////////// 93 94 void t_map_stations::putThriftResults(std::vector<t_thriftResult*>* results) { 95 QMutexLocker locker(&_mutex); 94 96 if (_results) { 95 97 while (!_results->empty()) { … … 100 102 } 101 103 _results = results; 104 } 105 106 // 107 ///////////////////////////////////////////////////////////////////////////// 108 void t_map_stations::slotPlotResults() { 109 QMutexLocker locker(&_mutex); 102 110 // 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 } 108 118 } 109 119 // end test 120 QTimer::singleShot(1000, this, SLOT(slotPlotResults())); 110 121 } -
trunk/GnssCenter/map_stations/map_stations.h
r5427 r5429 25 25 private slots: 26 26 void slotStartThrift(); 27 void slotPlotResults(); 27 28 28 29 private: 30 QMutex _mutex; 29 31 t_worldPlot* _plot; 30 32 t_thriftClient* _thriftClient;
Note:
See TracChangeset
for help on using the changeset viewer.