]> git.mxchange.org Git - flightgear.git/blobdiff - src/Navaids/fixlist.hxx
Moved some of the low level scene graph construction code over to simgear.
[flightgear.git] / src / Navaids / fixlist.hxx
index 968e90faf32de0c489355cdb01414fe269bcb2d9..c23d4b75942440ae70270dd86c63054ddaaaddcc 100644 (file)
@@ -26,7 +26,7 @@
 
 
 #include <simgear/compiler.h>
-#include <simgear/misc/fgpath.hxx>
+#include <simgear/misc/sg_path.hxx>
 
 #include <map>
 #include <vector>
@@ -34,9 +34,9 @@
 
 #include "fix.hxx"
 
-FG_USING_STD(map);
-FG_USING_STD(vector);
-FG_USING_STD(string);
+SG_USING_STD(map);
+SG_USING_STD(vector);
+SG_USING_STD(string);
 
 
 class FGFixList {
@@ -54,12 +54,16 @@ public:
     ~FGFixList();
 
     // load the navaids and build the map
-    bool init( FGPath path );
+    bool init( SGPath path );
 
-    // query the database for the specified frequency, lon and lat are
+    // query the database for the specified fix
+    bool query( const string& ident, FGFix *f );
+
+    // query the database for the specified fix, lon and lat are
     // in degrees, elev is in meters
-    bool query( const string& ident, double lon, double lat, double elev,
-               FGFix *f, double *heading, double *dist);
+    bool query_and_offset( const string& ident, double lon, double lat,
+                           double elev, FGFix *f, double *heading,
+                           double *dist );
 };