]> git.mxchange.org Git - flightgear.git/blobdiff - src/Navaids/ilslist.hxx
Moved random ground cover object management code (userdata.[ch]xx) over
[flightgear.git] / src / Navaids / ilslist.hxx
index 433e975f3fec79e5581af03b38b62027bf9fc54b..1538b14d80b4f25fe16593bd9a67443cbd6ae51e 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>
@@ -40,7 +40,7 @@ SG_USING_STD(vector);
 class FGILSList {
 
     // convenience types
-    typedef vector < FGILS > ils_list_type;
+    typedef vector < FGILS* > ils_list_type;
     typedef ils_list_type::iterator ils_list_iterator;
     typedef ils_list_type::const_iterator ils_list_const_iterator;
 
@@ -57,11 +57,18 @@ public:
     ~FGILSList();
 
     // 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
     // in degrees, elev is in meters
-    bool query( double lon, double lat, double elev, double freq, FGILS *i );
+    // bool query( double lon, double lat, double elev, double freq, FGILS *i );
+
+    // Query the database for the specified frequency.  It is assumed
+    // that there will be multiple stations with matching frequencies
+    // so a position must be specified.  Lon and lat are in degrees,
+    // elev is in meters.
+    FGILS *findByFreq( double freq, double lon, double lat, double elev );
+
 };