]> git.mxchange.org Git - flightgear.git/blobdiff - src/Navaids/positioned.hxx
Fix bug 1227, cache thrash on Win.
[flightgear.git] / src / Navaids / positioned.hxx
index 7f852a2b8622c8c04d4a7599ee37b4e50b0c2644..8b4fb6a3f8c4b4c86e9816d9ed50677eb86efbb4 100644 (file)
@@ -163,7 +163,7 @@ public:
   class TypeFilter : public Filter
   {
   public:
-    TypeFilter(Type aTy);
+    TypeFilter(Type aTy = INVALID);
     virtual bool pass(FGPositioned* aPos) const;
     
     virtual Type minType() const
@@ -173,7 +173,10 @@ public:
     { return mMaxType; }
     
     void addType(Type aTy);
+      
+    static TypeFilter fromString(const std::string& aFilterSpec);
   private:
+      
     std::vector<Type> types;
     Type mMinType, mMaxType;
   };
@@ -266,7 +269,7 @@ public:
   static const char* nameForType(Type aTy);
 
   static FGPositioned* createUserWaypoint(const std::string& aIdent, const SGGeod& aPos);
-  static void deleteUserWaypoint(const std::string& aIdent);
+  static bool deleteUserWaypoint(const std::string& aIdent);
 protected:
   friend class flightgear::NavDataCache;