Ref T730, FSD callsign string function, addressing the "*EDDF_TWR" issue

This commit is contained in:
Klaus Basan
2019-09-27 23:24:36 +02:00
committed by Mat Sutcliffe
parent ca26ddd225
commit 5eb3dee829
2 changed files with 10 additions and 0 deletions

View File

@@ -139,6 +139,13 @@ namespace BlackMisc
m_callsign.at(m_callsign.size() - 1) >= 'A' && m_callsign.at(m_callsign.size() - 1) <= 'Z';
}
QString CCallsign::getFsdCallsignString() const
{
// mainly used to fix the cross coupled callsigns such as *EDDF_TWR
if (m_callsignAsSet.startsWith('*')) { return this->getStringAsSet(); }
return this->asString();
}
bool CCallsign::isSameAsSet() const
{
return m_callsign == m_callsignAsSet;

View File

@@ -89,6 +89,9 @@ namespace BlackMisc
//! Get callsign.
const QString &getStringAsSet() const { return m_callsignAsSet; }
//! The callsign string used with FSD
QString getFsdCallsignString() const;
//! Same as set callsign?
bool isSameAsSet() const;