WRAPPER_API static bool ValueEquals(const [Type] &leftSide, const [Type] &rightSide)
WRAPPER_API bool ValueEquals(const [Type] &value) const
Above, [Type] is a placeholder for the class name of the objects to be compared.
The ValueEquals method is a member of many classes in GeoCalc. It returns a boolean value indicating if the two instances have the same value.
There are two signatures for this method. The first one takes a single argument and checks to see if it's value matches the value of the current instance. It returns True if the two instances have the same value and false if they do not. The second signature takes two arguments of the same type, and returns a boolean value indicating whether they have the same value.
The following example shows how to use the ValueEquals method for the ProjectedCoordSys object, but the usage is the same for all objects.
void ValueEquals(GEOCALCPBW_NAMESPACE::ProjectedCoordSys * cs1, GEOCALCPBW_NAMESPACE::ProjectedCoordSys * cs2)
{
if(GEOCALCPBW_NAMESPACE::ProjectedCoordSys::ValueEquals(*cs1, *cs2))
{
// then they are equal
}
if(cs1->ValueEquals(*cs2))
{
// then they are equal
}
}