mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-03 07:35:48 +08:00
Ref T384, check for ATC suffix
This commit is contained in:
@@ -161,6 +161,12 @@ namespace BlackMisc
|
||||
return this->getStringAsSet().contains('_');
|
||||
}
|
||||
|
||||
bool CCallsign::hasAtcSuffix() const
|
||||
{
|
||||
const QString s = this->getSuffix();
|
||||
return !s.isEmpty() && atcCallsignSuffixes().contains(s);
|
||||
}
|
||||
|
||||
bool CCallsign::equalsString(const QString &callsignString) const
|
||||
{
|
||||
CCallsign other(callsignString);
|
||||
|
||||
@@ -117,6 +117,9 @@ namespace BlackMisc
|
||||
//! Suffix such as "_TWR"?
|
||||
bool hasSuffix() const;
|
||||
|
||||
//! Has an ATC suffix?
|
||||
bool hasAtcSuffix() const;
|
||||
|
||||
//! Equals callsign string?
|
||||
bool equalsString(const QString &callsignString) const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user