Changeset 5392 in ntrip for trunk/GnssCenter/thrift
- Timestamp:
- Sep 9, 2013, 2:24:54 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GnssCenter/thrift/test_rtnet/rtnetThriftClient.cpp
r5390 r5392 18 18 using namespace boost; 19 19 20 // Handler Class Definition 21 ////////////////////////////////////////////////////////////////////////////// 20 22 class RtnetClientHandler : public RtnetDataIf { 21 23 public: 22 24 RtnetClientHandler() {} 23 25 ~RtnetClientHandler() {} 26 24 27 void startDataStream() {} 25 28 void registerRtnet(const RtnetInformation& info) {} 26 29 void handleZDAmb(const vector<ZDAmb>& ambList) {} 27 30 void handleDDAmbresBaselines(const vector<DDAmbresBaseline>& ambList) {} 31 void handleSatelliteXYZ(const vector< SatelliteXYZ>& svXYZList); 28 32 void handleStationInfo(const vector<StationInfo>& stationList) {} 29 33 void handleStationAuxInfo(const vector<StationAuxInfo>& stationAuxList) {} … … 31 35 void handleSatelliteClock(const vector<SatelliteClock>& svList) {} 32 36 void handleEpochResults(const RtnetEpoch& epoch) {} 33 34 void handleSatelliteXYZ(const vector< SatelliteXYZ>& svXYZList);35 37 }; 36 38 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 ////////////////////////////////////////////////////////////////////////////// 50 41 int main(int argc, char **argv) { 51 42 … … 74 65 return 0; 75 66 } 67 68 // Handle Satellite Positions 69 ////////////////////////////////////////////////////////////////////////////// 70 void RtnetClientHandler:: 71 handleSatelliteXYZ(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.