mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 05:26:45 +08:00
Ref T117, utility functions for reader
* isDbModelEqualForPublishing * getModelForDbKey(int
This commit is contained in:
committed by
Mathew Sutcliffe
parent
fe3368e1f4
commit
5a67276fbb
@@ -97,6 +97,13 @@ namespace BlackCore
|
||||
return models.findFirstByModelStringOrDefault(modelString);
|
||||
}
|
||||
|
||||
CAircraftModel CModelDataReader::getModelForDbKey(int dbKey) const
|
||||
{
|
||||
if (dbKey < 0) { return CAircraftModel(); }
|
||||
const CAircraftModelList models(getModels());
|
||||
return models.findByKey(dbKey);
|
||||
}
|
||||
|
||||
CAircraftModelList CModelDataReader::getModelsForAircraftDesignatorAndLiveryCombinedCode(const QString &aircraftDesignator, const QString &combinedCode)
|
||||
{
|
||||
if (aircraftDesignator.isEmpty()) { return CAircraftModelList(); }
|
||||
|
||||
Reference in New Issue
Block a user