mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-18 03:15:34 +08:00
Ref T308, performance optimized fromDatabaseJsonCaching
* maps for id/object * caching fromDatabaseJsonCaching * fixed CAircraftModel::fromDatabaseJson wrong prefix
This commit is contained in:
@@ -80,6 +80,11 @@ namespace BlackMisc
|
||||
|
||||
//! Find by multiple criteria
|
||||
CLivery smartLiverySelector(const CLivery &liveryPattern) const;
|
||||
|
||||
//! Caching version from DB data
|
||||
//! \param relatedAirlines passing the airline can skip the parsing from livery
|
||||
//! \remark without passing related airlines there is not much sense using this function, as most airlines/liveries have a 1:1 ratio
|
||||
static CLiveryList fromDatabaseJsonCaching(const QJsonArray &array, const CAirlineIcaoCodeList &relatedAirlines = {});
|
||||
};
|
||||
} //namespace
|
||||
} // namespace
|
||||
|
||||
Reference in New Issue
Block a user