]> git.mxchange.org Git - flightgear.git/blobdiff - src/Navaids/positioned.hxx
Extend FGPositioned to allow mapping from a string to a type.
[flightgear.git] / src / Navaids / positioned.hxx
index 93e4f6bbfee60ddf4da6ad03c54377bd1cb9e016..4d1f6081fbb32252dde13bac5a38a6d2d47278ef 100644 (file)
@@ -188,10 +188,14 @@ public:
    */
   static List findClosestN(const SGGeod& aPos, unsigned int aN, double aCutoffNm, Filter* aFilter = NULL);
   
-  
+  /**
+   * Map a candidate type string to a real type. Returns INVALID if the string
+   * does not correspond to a defined type.
+   */
+  static Type typeFromName(const std::string& aName);
   
   /**
-   * Debug helper, map a type to a human-readable string
+   * Map a type to a human-readable string
    */
   static const char* nameForType(Type aTy);
 protected: