]> git.mxchange.org Git - simgear.git/blobdiff - simgear/route/waypoint.hxx
Update the code a bit more, add a function to retreive the last error string and...
[simgear.git] / simgear / route / waypoint.hxx
index afa215980d748ad1152918f810fbf691b81c7c78..a95b030f3576bdf8cefdfeb0c4e5898360590dca 100644 (file)
@@ -76,6 +76,7 @@ private:
     double distance;
 
     string id;
+    string name;
 
 public:
 
@@ -86,10 +87,11 @@ public:
      * @param alt target altitude
      * @param mode type of coordinates/math to use
      * @param s waypoint identifier
+     * @param n waypoint name
      */
     SGWayPoint( const double lon = 0.0, const double lat = 0.0,
                const double alt = 0.0, const modetype m = WGS84,
-               const string s = "" );
+               const string s = "", const string n = "" );
 
     /** Destructor */
     ~SGWayPoint();
@@ -153,6 +155,9 @@ public:
     /** @return waypoint id */
     inline string get_id() const { return id; }
 
+    /** @return waypoint name */
+    inline string get_name() const { return name; }
+
 };