mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 17:35:34 +08:00
Ref T111, added utility functions used for swift plugin (dummy driver)
* new reader functions * plugin info
This commit is contained in:
committed by
Mathew Sutcliffe
parent
29e1d54e05
commit
b1295cd457
@@ -34,6 +34,11 @@ namespace BlackCore
|
||||
return m_airportCache.get();
|
||||
}
|
||||
|
||||
CAirport CAirportDataReader::getAirportForIcaoDesignator(const QString &designator) const
|
||||
{
|
||||
return getAirports().findByIcao(CAirportIcaoCode(designator)).frontOrDefault();
|
||||
}
|
||||
|
||||
int CAirportDataReader::getAirportsCount() const
|
||||
{
|
||||
return this->getAirports().size();
|
||||
|
||||
@@ -38,6 +38,10 @@ namespace BlackCore
|
||||
//! \threadsafe
|
||||
BlackMisc::Aviation::CAirportList getAirports() const;
|
||||
|
||||
//! Returns airport for designator (or default)
|
||||
//! \threadsafe
|
||||
BlackMisc::Aviation::CAirport getAirportForIcaoDesignator(const QString &designator) const;
|
||||
|
||||
//! Returns a list of all airports in the database.
|
||||
//! \threadsafe
|
||||
int getAirportsCount() const;
|
||||
|
||||
Reference in New Issue
Block a user