mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 06:35:52 +08:00
Ref T247, utility functions to validate model set
This commit is contained in:
@@ -321,6 +321,22 @@ namespace BlackMisc
|
||||
return m.getIconPath();
|
||||
}
|
||||
|
||||
CAircraftModelList CAircraftModelList::findModelsWithoutExistingFile() const
|
||||
{
|
||||
return this->findBy([](const CAircraftModel & model)
|
||||
{
|
||||
return !model.existsCorrespondingFile();
|
||||
});
|
||||
}
|
||||
|
||||
CAircraftModelList CAircraftModelList::findModelsWithExistingFile() const
|
||||
{
|
||||
return this->findBy([](const CAircraftModel & model)
|
||||
{
|
||||
return model.existsCorrespondingFile();
|
||||
});
|
||||
}
|
||||
|
||||
QString CAircraftModelList::designatorToFamily(const CAircraftIcaoCode &aircraftIcaoCode) const
|
||||
{
|
||||
if (aircraftIcaoCode.hasFamily()) { return aircraftIcaoCode.getFamily(); }
|
||||
|
||||
Reference in New Issue
Block a user