Changeset 5424 in ntrip


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

Legend:

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

    r5417 r5424  
    3838  shared_ptr<TTransport>  transport(new TBufferedTransport(socket));
    3939  shared_ptr<TProtocol>   protocol(new TBinaryProtocol(transport));
    40   shared_ptr<RtnetDataIf> dataHandler(new t_thriftClient(_parent));
     40  shared_ptr<RtnetDataIf> dataHandler(new t_thriftHandler(_parent));
    4141  shared_ptr<TProcessor>  processor(new RtnetDataProcessor(dataHandler));
    4242
     
    5656}
    5757
     58// Constructor
     59//////////////////////////////////////////////////////////////////////////////
     60t_thriftHandler::t_thriftHandler(GnssCenter::t_map_stations* parent) {
     61  _parent = parent;
     62}
     63
     64// Destructor
     65//////////////////////////////////////////////////////////////////////////////
     66t_thriftHandler::~t_thriftHandler() {
     67}
     68
    5869// Handle Satellite Positions
    5970//////////////////////////////////////////////////////////////////////////////
    60 void t_thriftClient::
     71void t_thriftHandler::
    6172handleSatelliteXYZ(const vector<SatelliteXYZ>& svXYZList) {
    6273  cout.setf(ios::fixed);
     
    7384// Handle Station Info
    7485//////////////////////////////////////////////////////////////////////////////
    75 void t_thriftClient::
     86void t_thriftHandler::
    7687handleStationInfo(const vector<StationInfo>& stationList) {
    7788  for (unsigned ii = 0; ii < stationList.size(); ii++) {
     
    8394}
    8495
    85 // Handle Eoch Results
     96// Handle Epoch Results
    8697//////////////////////////////////////////////////////////////////////////////
    87 void t_thriftClient::
     98void t_thriftHandler::
    8899handleEpochResults(const RtnetEpoch& epoch) {
    89100  for (unsigned ii = 0; ii < epoch.stationResultList.size(); ii++) {
  • trunk/GnssCenter/map_stations/thriftclient.h

    r5416 r5424  
    3636};
    3737
    38 class t_thriftClient : public QThread, public RtnetDataIf {
     38
     39class t_thriftHandler : public RtnetDataIf {
    3940 public:
    40   t_thriftClient(GnssCenter::t_map_stations* parent);
    41   ~t_thriftClient();
    42   virtual void run();
    43   void stop() {_stop = true;}
    44 
     41  t_thriftHandler(GnssCenter::t_map_stations* parent);
     42  ~t_thriftHandler();
    4543  void startDataStream() {}
    4644  void registerRtnet(const RtnetInformation&) {}
     
    5351  void handleSatelliteClock(const std::vector<SatelliteClock>&) {}
    5452  void handleEpochResults(const RtnetEpoch& epoch);
    55 
    5653 private:
    57 
    5854  class t_stationCrd {
    5955   public:
     
    6258    double _z;
    6359  };
    64 
    6560  GnssCenter::t_map_stations*         _parent;
    6661  std::map<std::string, t_stationCrd> _stationCrd;
    67   bool                                _stop;
     62};
     63
     64class t_thriftClient : public QThread {
     65 public:
     66  t_thriftClient(GnssCenter::t_map_stations* parent);
     67  ~t_thriftClient();
     68  virtual void run();
     69  void stop() {_stop = true;}
     70
     71 private:
     72  GnssCenter::t_map_stations* _parent;
     73  bool                        _stop;
    6874};
    6975
Note: See TracChangeset for help on using the changeset viewer.