X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FNavaids%2Fpositioned.hxx;h=088955fdca8c0c5a9586b63881e66346b83b238c;hb=76958a038251a697ad798bce630e7d793797cf78;hp=1c275dcf4db30ddcefe52340fcd23d5247394dad;hpb=c6045147544badd6daefdcab9d4de1ed6936533b;p=flightgear.git diff --git a/src/Navaids/positioned.hxx b/src/Navaids/positioned.hxx index 1c275dcf4..088955fdc 100644 --- a/src/Navaids/positioned.hxx +++ b/src/Navaids/positioned.hxx @@ -113,6 +113,22 @@ public: virtual bool pass(FGPositioned* aPos) const { return true; } + virtual Type minType() const + { return INVALID; } + + virtual Type maxType() const + { return INVALID; } + + /** + * Test if this filter has a non-empty type range + */ + bool hasTypeRange() const; + + /** + * Assuming hasTypeRange is true, test if a given type passes the range + */ + bool passType(Type aTy) const; + bool operator()(FGPositioned* aPos) const { return pass(aPos); } };