mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-06 18:25:37 +08:00
Ref T275, general improvement in value object added comparePropertyByIndex
This commit is contained in:
@@ -185,6 +185,18 @@ namespace BlackMisc
|
||||
}
|
||||
}
|
||||
|
||||
int CCoordinateGeodetic::comparePropertyByIndex(const CPropertyIndex &index, const CCoordinateGeodetic &compareValue) const
|
||||
{
|
||||
if (ICoordinateGeodetic::canHandleIndex(index))
|
||||
{
|
||||
return ICoordinateGeodetic::comparePropertyByIndex(index, compareValue);
|
||||
}
|
||||
else
|
||||
{
|
||||
return CValueObject::comparePropertyByIndex(index, compareValue);
|
||||
}
|
||||
}
|
||||
|
||||
CCoordinateGeodetic::CCoordinateGeodetic(const std::array<double, 3> &normalVector)
|
||||
{
|
||||
this->setNormalVector(normalVector);
|
||||
|
||||
@@ -244,6 +244,9 @@ namespace BlackMisc
|
||||
//! \copydoc Mixin::Index::setPropertyByIndex
|
||||
void setPropertyByIndex(const CPropertyIndex &index, const CVariant &variant);
|
||||
|
||||
//! \copydoc Mixin::Index::setPropertyByIndex
|
||||
int comparePropertyByIndex(const CPropertyIndex &index, const CCoordinateGeodetic &compareValue) const;
|
||||
|
||||
//! Switch unit of height
|
||||
CCoordinateGeodetic &switchUnit(const PhysicalQuantities::CLengthUnit &unit);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user