mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-05-02 07:05:38 +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)
|
CCollection<CMetar>(other)
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
|
CMetar CMetarSet::getMetarForAirport(const Aviation::CAirportIcaoCode &icao) const
|
||||||
|
{
|
||||||
|
return this->findFirstByOrDefault(&CMetar::getAirportIcaoCode, icao);
|
||||||
|
}
|
||||||
|
|
||||||
} // namespace
|
} // namespace
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|||||||
@@ -34,6 +34,9 @@ namespace BlackMisc
|
|||||||
|
|
||||||
//! Construct from a base class object.
|
//! Construct from a base class object.
|
||||||
CMetarSet(const CCollection<CMetar> &other);
|
CMetarSet(const CCollection<CMetar> &other);
|
||||||
|
|
||||||
|
//! METAR for ICAO code
|
||||||
|
CMetar getMetarForAirport(const Aviation::CAirportIcaoCode &icao) const;
|
||||||
};
|
};
|
||||||
|
|
||||||
} //namespace
|
} //namespace
|
||||||
|
|||||||
Reference in New Issue
Block a user