Changeset 5479 in ntrip for trunk/GnssCenter/monitor


Ignore:
Timestamp:
Sep 18, 2013, 1:56:35 PM (11 years ago)
Author:
mervart
Message:
 
Location:
trunk/GnssCenter/monitor
Files:
2 edited

Legend:

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

    r5467 r5479  
    5858  }
    5959  catch (TException& e) {
    60     cerr << "Caught an exception generated by Thrift: " << e.what() << endl;
     60    emit message(e.what());
    6161  }
    6262  catch (...) {
    63     cerr << "Unknown exception" << endl;
     63    emit message("Unknown exception");
    6464  }
    6565}
     
    8080void t_thriftHandler::
    8181handleSatelliteXYZ(const vector<SatelliteXYZ>& svXYZList) {
    82   cout.setf(ios::fixed);
    83   for (unsigned ii = 0; ii < svXYZList.size(); ii++) {
     82//  for (unsigned ii = 0; ii < svXYZList.size(); ii++) {
    8483//    const SatelliteXYZ& sat = svXYZList[ii];
    8584//    cout << unsigned(sat.ID) << ' '
     
    8786//         << setprecision(3) << sat.xyz.y << ' '
    8887//         << setprecision(3) << sat.xyz.z << endl;
    89   }
    90 //  cout << endl;
     88//  }
    9189}
    9290
  • trunk/GnssCenter/monitor/thriftclient.h

    r5452 r5479  
    6666
    6767class t_thriftClient : public QThread {
     68 Q_OBJECT
    6869 public:
    6970  t_thriftClient(t_monitor* parent, const QString& host, int port);
     
    7475    _stop = true;
    7576  }
    76 
     77 signals:
     78  void message(QByteArray msg);
    7779 private:
    7880  QMutex      _mutex;
Note: See TracChangeset for help on using the changeset viewer.