6#ifndef SWIFT_MISC_AVIATION_AIRPORTLIST_H
7#define SWIFT_MISC_AVIATION_AIRPORTLIST_H
21namespace swift::misc::aviation
Generic ordered container with value semantics.
CSequence()=default
Default constructor.
Q_REQUIRED_RESULT CSequence sorted(Predicate p) const
Value object encapsulating information about an airpot.
Value object encapsulating information of airport ICAO data.
Value object for a list of airports.
CSequence()=default
Default constructor.
QStringList allIcaoCodes(bool sorted) const
All ICAO codes.
QStringList allDescriptivesNames(bool sorted) const
All names.
static CAirportList fromDatabaseJson(const QJsonArray &array, CAirportList *inconsistent=nullptr)
From our DB JSON.
bool containsAirportWithIcaoCode(const CAirportIcaoCode &icao) const
Containing an airport with given ICAO code?
void updateMissingParts(const CAirportList &updateFromList)
Update this list from the other list.
CAirport findFirstByIcao(const CAirportIcaoCode &icao) const
Find first station by callsign, if not return default.
CAirport findFirstByNameOrLocation(const QString &nameOrLocation) const
Find first by name or location, if not return default.
CAirportList findByIcao(const CAirportIcaoCode &icao) const
Find 0..n airports by ICAO code.
QStringList allLocationsPlusOptionalDescription(bool sorted) const
All locations plus optional description.
QStringList allLocations() const
All locations.
void replaceOrAddByIcao(const CAirport &addedOrReplacedAirport)
Replace or add based on same ICAO code.
CAirportList()=default
Default constructor.
List of objects read from database. Such objects should implement.
List of objects with geo coordinates.
#define SWIFT_DECLARE_SEQUENCE_MIXINS(Namespace, T, List)
Explicit template declaration of mixins for a CSequence subclass to be placed near the top of the hea...
#define SWIFT_MISC_EXPORT
Export a class or function from the library.