Allow to disable reverse lookup for model string and livery ids

This commit is contained in:
Klaus Basan
2019-06-15 22:55:42 +02:00
committed by Mat Sutcliffe
parent ee9f1188d7
commit 6bc2a15f61
6 changed files with 57 additions and 20 deletions

View File

@@ -44,6 +44,23 @@ namespace BlackMisc
return true;
}
bool CAircraftMatcherSetup::isReverseLookupModelString() const
{
return this->getMatchingMode().testFlag(ReverseLookupModelString);
}
bool CAircraftMatcherSetup::isReverseLookupSwiftLiveryIds() const
{
return this->getMatchingMode().testFlag(ReverseLookupSwiftLiveryIds);
}
void CAircraftMatcherSetup::resetReverseLookup()
{
MatchingMode m = this->getMatchingMode();
m.setFlag(ReverseLookupDefault);
this->setMatchingMode(m);
}
bool CAircraftMatcherSetup::doRunMsReverseLookupScript() const
{
return m_msReverseEnabled && !m_msReverseLookupFile.isEmpty();