6#ifndef SWIFT_MISC_COUNTRYLIST_H
7#define SWIFT_MISC_COUNTRYLIST_H
Generic ordered container with value semantics.
Value object encapsulating a list of countries.
static CCountryList fromDatabaseJson(const QJsonArray &array)
From our database JSON format.
CCountry findFirstByAlias(const QString &alias) const
Find first by alias.
CSequence()=default
Default constructor.
CCountry findBestMatchByCountryName(const QString &candidate) const
Find "best match" by country.
QStringList toIso3List(bool sorted=false) const
All ISO 3 codes.
CCountry findByIsoCode(const QString &isoCode) const
Find by ISO code.
QStringList toIsoNameList(bool sorted=false) const
ISO/name string list.
QStringList toNameList(bool sorted=false) const
Name string list.
QStringList toIsoList(bool sorted=false) const
All ISO codes.
QStringList toNameIsoList(bool sorted=false) const
Name/ISO string list.
CCountryList()=default
Default constructor.
CSequence()=default
Default constructor.
Q_REQUIRED_RESULT CSequence sorted(Predicate p) const
List of objects read from database. Such objects should implement.
Free functions in swift::misc.
#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.