Changeset 5392 in ntrip


Ignore:
Timestamp:
Sep 9, 2013, 2:24:54 PM (9 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GnssCenter/thrift/test_rtnet/rtnetThriftClient.cpp

    r5390 r5392  
    1818using namespace boost;
    1919
     20// Handler Class Definition
     21//////////////////////////////////////////////////////////////////////////////
    2022class RtnetClientHandler : public RtnetDataIf {
    2123 public:
    2224  RtnetClientHandler() {}
    2325  ~RtnetClientHandler() {}
     26
    2427  void startDataStream() {}
    2528  void registerRtnet(const RtnetInformation& info) {}
    2629  void handleZDAmb(const vector<ZDAmb>& ambList) {}
    2730  void handleDDAmbresBaselines(const vector<DDAmbresBaseline>& ambList) {}
     31  void handleSatelliteXYZ(const vector< SatelliteXYZ>& svXYZList);
    2832  void handleStationInfo(const vector<StationInfo>& stationList) {}
    2933  void handleStationAuxInfo(const vector<StationAuxInfo>& stationAuxList) {}
     
    3135  void handleSatelliteClock(const vector<SatelliteClock>& svList) {}
    3236  void handleEpochResults(const RtnetEpoch& epoch) {}
    33 
    34   void handleSatelliteXYZ(const vector< SatelliteXYZ>& svXYZList);
    3537};
    3638
    37 void RtnetClientHandler::
    38 handleSatelliteXYZ(const vector<SatelliteXYZ>& svXYZList) {
    39   cout.setf(ios::fixed);
    40   for (unsigned ii = 0; ii < svXYZList.size(); ii++) {
    41     const SatelliteXYZ& sat = svXYZList[ii];
    42     cout << unsigned(sat.ID) << ' '
    43          << setprecision(3) << sat.xyz.x << ' '
    44          << setprecision(3) << sat.xyz.y << ' '
    45          << setprecision(3) << sat.xyz.z << endl;
    46   }
    47   cout << endl;
    48 }
    49 
     39// Program
     40//////////////////////////////////////////////////////////////////////////////
    5041int main(int argc, char **argv) {
    5142
     
    7465  return 0;
    7566}
     67
     68// Handle Satellite Positions
     69//////////////////////////////////////////////////////////////////////////////
     70void RtnetClientHandler::
     71handleSatelliteXYZ(const vector<SatelliteXYZ>& svXYZList) {
     72  cout.setf(ios::fixed);
     73  for (unsigned ii = 0; ii < svXYZList.size(); ii++) {
     74    const SatelliteXYZ& sat = svXYZList[ii];
     75    cout << unsigned(sat.ID) << ' '
     76         << setprecision(3) << sat.xyz.x << ' '
     77         << setprecision(3) << sat.xyz.y << ' '
     78         << setprecision(3) << sat.xyz.z << endl;
     79  }
     80  cout << endl;
     81}
     82
Note: See TracChangeset for help on using the changeset viewer.