+//------------------------------------------------------------------------------
+bool FGNavList::TypeFilter::fromTypeString(const std::string& type)
+{
+ FGPositioned::Type t;
+ if( type == "any" ) t = FGPositioned::INVALID;
+ else if( type == "fix" ) t = FGPositioned::FIX;
+ else if( type == "vor" ) t = FGPositioned::VOR;
+ else if( type == "ndb" ) t = FGPositioned::NDB;
+ else if( type == "ils" ) t = FGPositioned::ILS;
+ else if( type == "dme" ) t = FGPositioned::DME;
+ else if( type == "tacan") t = FGPositioned::TACAN;
+ else return false;
+
+ _mintype = _maxtype = t;
+
+ return true;
+}
+