Some convenience functions ATC station

This commit is contained in:
Klaus Basan
2015-01-22 11:06:50 +01:00
parent 49a8dee67c
commit 9d14f8f42d
4 changed files with 69 additions and 5 deletions

View File

@@ -57,6 +57,31 @@ namespace BlackMisc
this->m_controller.setCallsign(callsign);
}
/*
* METAR
*/
bool CAtcStation::hasMetar() const
{
return this->m_metar.hasMessage();
}
/*
* Suffix
*/
QString CAtcStation::getCallsignSuffix() const
{
return m_callsign.getSuffix();
}
/*
* Callsign
*/
void CAtcStation::setCallsign(const CCallsign &callsign)
{
this->m_callsign = callsign;
this->m_controller.setCallsign(callsign);
}
/*
* Convert to string
*/