refs #469 convenience function in METAR set

This commit is contained in:
Klaus Basan
2015-09-28 17:17:38 +02:00
committed by Mathew Sutcliffe
parent 2cfd3540b8
commit 29d436ee67
2 changed files with 8 additions and 0 deletions

View File

@@ -17,5 +17,10 @@ namespace BlackMisc
CCollection<CMetar>(other)
{ }
CMetar CMetarSet::getMetarForAirport(const Aviation::CAirportIcaoCode &icao) const
{
return this->findFirstByOrDefault(&CMetar::getAirportIcaoCode, icao);
}
} // namespace
} // namespace