25using namespace swift::misc::aviation;
26using namespace swift::misc::physical_quantities;
27using namespace swift::misc::geo;
28using namespace swift::misc::network;
30namespace swift::sample
45 Q_ASSERT_X(station1 == station2, Q_FUNC_INFO,
"Unequal stations");
55 qDebug() <<
"-- before update";
63 qDebug() <<
"-- after update via predicates";
69 atcList.
applyIf([=](
const auto &arg) {
return newController.
matches(arg); }, anotherController);
71 qDebug() <<
"-- after update via value map";
74 qDebug() <<
"-----------------------------------------------";
static CFrequencyUnit MHz()
Megahertz.
Specialized value object compliant map for variants, based on indexes.
void addValue(const CPropertyIndex &index, const CVariant &value)
Add a value.
bool matches(const T &value) const
True if this map matches the value.
void push_back(const T &value)
Appends an element at the end of the sequence.
int applyIf(Predicate p, const VariantMap &newValues, bool skipEqualValues=false)
Modify by applying a value map to each element for which a given predicate returns true.
static CVariant fromValue(T &&value)
Construct a variant from a value.
Value object encapsulating information about an ATC station.
const CCallsign & getCallsign() const
Get callsign.
Value object for a list of ATC stations.
Value object encapsulating information of a callsign.
static CCoordinateGeodetic fromWgs84(const QString &latitudeWgs84, const QString &longitudeWgs84, const aviation::CAltitude &geodeticHeight={})
Coordinate by WGS84 position data.
QString toQString(bool i18n=false) const
Cast as QString.
Value object encapsulating information of a user.
Physical unit length (length).
static CLengthUnit km()
Kilometer km.
static CLengthUnit ft()
Foot ft.
static int samples()
Run the samples.
auto MemberEqual(Ts... vs)
Predicate which tests whether some member functions return some values.
Free functions in swift::misc.