mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-20 04:25:42 +08:00
refs #820, utility functions for score and groupBy
This commit is contained in:
@@ -164,6 +164,9 @@ namespace BlackMisc
|
||||
//! Has (airline) name?
|
||||
bool hasName() const { return !m_name.isEmpty(); }
|
||||
|
||||
//! Has simplified airline name?
|
||||
bool hasSimplifiedName() const;
|
||||
|
||||
//! Complete data
|
||||
bool hasCompleteData() const;
|
||||
|
||||
@@ -197,6 +200,9 @@ namespace BlackMisc
|
||||
//! As a brief HTML summary (e.g. used in tooltips)
|
||||
QString asHtmlSummary () const;
|
||||
|
||||
//! Score against other code 0..100
|
||||
int calculateScore(const CAirlineIcaoCode &otherCode) const;
|
||||
|
||||
//! Valid designator?
|
||||
static bool isValidAirlineDesignator(const QString &airline);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user