refs #820, utility functions for score and groupBy

This commit is contained in:
Klaus Basan
2016-12-02 02:50:12 +01:00
parent d398fc7e9e
commit 630ec78d38
13 changed files with 250 additions and 40 deletions

View File

@@ -159,6 +159,9 @@ namespace BlackMisc
//! Manufacturer
bool hasManufacturer() const;
//! Matching the manufacturer?
bool matchesManufacturer(const QString &manufacturer) const;
//! Get WTC
const QString &getWtc() const { return m_wtc; }
@@ -249,6 +252,10 @@ namespace BlackMisc
//! As a brief HTML summary (e.g. used in tooltips)
QString asHtmlSummary () const;
//! Considers rank, manufacturer and family 0..90
//! \remark normally used with a selected set of ICAO codes or combined types
int calculateScore(const CAircraftIcaoCode &otherCode) const;
//! Valid designator?
static bool isValidDesignator(const QString &designator);