25 using namespace swift::misc::aviation;
26 using namespace swift::misc::physical_quantities;
27 using namespace swift::misc::geo;
28 using namespace swift::misc::network;
30 namespace swift::sample
32 int CSamplesChangeObject::samples()
36 CCoordinateGeodetic::fromWgs84(
"48° 21′ 13″ N",
"11° 47′ 09″ E", { 1487, CLengthUnit::ft() });
42 CFrequency(120.7, CFrequencyUnit::MHz()), geoPos,
CLength(100, CLengthUnit::km()),
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() <<
"-----------------------------------------------";
Specialized value object compliant map for variants, based on indexes.
bool matches(const T &value) const
True if this map matches the value.
void addValue(const CPropertyIndex &index, const CVariant &value)
Add a 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.
QString toQString(bool i18n=false) const
Cast as QString.
Value object encapsulating information of a user.
Physical unit length (length)
auto MemberEqual(Ts... vs)
Predicate which tests whether some member functions return some values.
Free functions in swift::misc.