X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FATCDCL%2Fapproach.hxx;h=9ea32b9c0c81077f29ea6be423c109f058462ccd;hb=0603aba9ae0d9deb23bd9c00a5a3768b37f317d8;hp=9aec71d0174e96bc9535d99387d31ffe8ca27609;hpb=aacebaf4b8f101dbad17f20e5136f50cd6991a6f;p=flightgear.git diff --git a/src/ATCDCL/approach.hxx b/src/ATCDCL/approach.hxx index 9aec71d01..9ea32b9c0 100644 --- a/src/ATCDCL/approach.hxx +++ b/src/ATCDCL/approach.hxx @@ -33,23 +33,7 @@ #include
-#ifdef SG_HAVE_STD_INCLUDES -# include -#include -#elif defined( SG_HAVE_NATIVE_SGI_COMPILERS ) -# include -#elif defined( __BORLANDC__ ) -# include -#else -# include -#include -#endif - -#if ! defined( SG_HAVE_NATIVE_SGI_COMPILERS ) -SG_USING_STD(istream); -#endif - -SG_USING_STD(string); +# include #include "ATC.hxx" #include "transmission.hxx" @@ -67,7 +51,7 @@ const double lfl = 10.0; // length of final leg struct PlaneApp { // variables for plane if it's on the radar - string ident; // indentification of plane + std::string ident; // indentification of plane double lon; // longitude in degrees double lat; // latitude in degrees double alt; // Altitute above sea level in feet @@ -111,7 +95,7 @@ class FGApproach : public FGATC { int bucket; - string active_runway; + std::string active_runway; double active_rw_hdg; double active_rw_lon; double active_rw_lat; @@ -119,7 +103,7 @@ class FGApproach : public FGATC { int num_planes; // number of planes on the stack PlaneApp planes[max_planes]; // Array of planes - string transmission; + std::string transmission; bool first; SGPropertyNode_ptr comm1_node; @@ -138,7 +122,7 @@ class FGApproach : public FGATC { SGPropertyNode_ptr atcopt9_node; // for failure modeling - string trans_ident; // transmitted ident + std::string trans_ident; // transmitted ident bool approach_failed; // approach failed? public: @@ -153,14 +137,14 @@ public: // Add new plane to stack if not already registered // Input: pid - id of plane (name) // Output: "true" if added; "false" if already existend - void AddPlane(const string& pid); + void AddPlane(const std::string& pid); // Remove plane from stack if out of range int RemovePlane(); inline double get_bucket() const { return bucket; } inline int get_pnum() const { return num_planes; } - inline const string& get_trans_ident() { return trans_ident; } + inline const std::string& get_trans_ident() { return trans_ident; } private: @@ -176,7 +160,7 @@ private: double angle_diff_deg( const double &a1, const double &a2); - void set_message(const string &s); + void set_message(const std::string &s); // ======================================================================== // get point2 given starting point1 and course and distance @@ -225,7 +209,7 @@ private: //Update the transmission string void UpdateTransmission(void); - friend istream& operator>> ( istream&, FGApproach& ); + friend std::istream& operator>> ( std::istream&, FGApproach& ); }; #endif // _FG_APPROACH_HXX