mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-07 19:35:32 +08:00
refs #469 convenience function in METAR set
This commit is contained in:
committed by
Mathew Sutcliffe
parent
2cfd3540b8
commit
29d436ee67
@@ -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
|
||||
|
||||
@@ -34,6 +34,9 @@ namespace BlackMisc
|
||||
|
||||
//! Construct from a base class object.
|
||||
CMetarSet(const CCollection<CMetar> &other);
|
||||
|
||||
//! METAR for ICAO code
|
||||
CMetar getMetarForAirport(const Aviation::CAirportIcaoCode &icao) const;
|
||||
};
|
||||
|
||||
} //namespace
|
||||
|
||||
Reference in New Issue
Block a user