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:
@@ -43,6 +43,9 @@ namespace BlackMisc
|
||||
|
||||
namespace Simulation
|
||||
{
|
||||
//! Individual (matching) score for each model
|
||||
using ScoredModels = QMap<int, CAircraftModel>;
|
||||
|
||||
//! Value object encapsulating a list of aircraft models
|
||||
class BLACKMISC_EXPORT CAircraftModelList :
|
||||
public BlackMisc::CSequence<CAircraftModel>,
|
||||
@@ -204,6 +207,9 @@ namespace BlackMisc
|
||||
//! File name normalized for DB
|
||||
void normalizeFileNamesForDb();
|
||||
|
||||
//! Score by aircraft ICAO code
|
||||
ScoredModels scoreFull(const CAircraftModel &remoteModel, bool ignoreZeroScores = true) const;
|
||||
|
||||
//! Completer strings
|
||||
QStringList toCompleterStrings(bool sorted = true) const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user