X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FNavaids%2Fpositioned.hxx;h=8b4fb6a3f8c4b4c86e9816d9ed50677eb86efbb4;hb=b30408b862ae0a300ff32ef90b20cdde9efdd499;hp=7f852a2b8622c8c04d4a7599ee37b4e50b0c2644;hpb=3047c316dc60142508a7e47c24108ba415525f15;p=flightgear.git diff --git a/src/Navaids/positioned.hxx b/src/Navaids/positioned.hxx index 7f852a2b8..8b4fb6a3f 100644 --- a/src/Navaids/positioned.hxx +++ b/src/Navaids/positioned.hxx @@ -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 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;