Ref T27, made isAircraftInRange context and provider function

Based on clang warnings and RW's comment now pure virtual and context and provider function
This commit is contained in:
Klaus Basan
2017-06-29 18:10:26 +02:00
committed by Mathew Sutcliffe
parent 1400f38aa9
commit ec844fd438
9 changed files with 26 additions and 12 deletions

View File

@@ -502,6 +502,12 @@ namespace BlackCore
return this->m_airspace->getAircraftInRangeCount();
}
bool CContextNetwork::isAircraftInRange(const CCallsign &callsign) const
{
if (this->isDebugEnabled()) { CLogMessage(this, CLogCategory::contextSlot()).debug() << Q_FUNC_INFO; }
return this->m_airspace->isAircraftInRange(callsign);
}
CSimulatedAircraft CContextNetwork::getAircraftInRangeForCallsign(const CCallsign &callsign) const
{
if (this->isDebugEnabled()) { CLogMessage(this, BlackMisc::CLogCategory::contextSlot()).debug() << Q_FUNC_INFO << callsign; }