PROJ C++ API
|
Numeric value associated with a UnitOfMeasure. More...
#include <common.hpp>
Public Member Functions | |
Measure (double valueIn=0.0, const UnitOfMeasure &unitIn=UnitOfMeasure()) | |
Instanciate a Measure. | |
const UnitOfMeasure & | unit () PROJ_CONST_DECL |
Return the unit of the Measure. | |
double | getSIValue () PROJ_CONST_DECL |
Return the value of the Measure, after conversion to the corresponding unit of the International System. | |
double | value () PROJ_CONST_DECL |
Return the value of the measure, expressed in the unit() | |
double | convertToUnit (const UnitOfMeasure &otherUnit) PROJ_CONST_DECL |
Return the value of this measure expressed into the provided unit. | |
bool | operator== (const Measure &other) PROJ_CONST_DECL |
Return whether two measures are equal. More... | |
bool | isEquivalentTo (const Measure &other, util::IComparable::Criterion criterion=util::IComparable::Criterion::STRICT) const |
Returns whether an object is equivalent to another one. More... | |
Numeric value associated with a UnitOfMeasure.
bool osgeo::proj::common::Measure::isEquivalentTo | ( | const Measure & | other, |
util::IComparable::Criterion | criterion = util::IComparable::Criterion::STRICT |
||
) | const |
Returns whether an object is equivalent to another one.
other | other object to compare to |
criterion | comparaison criterion. |
bool osgeo::proj::common::Measure::operator== | ( | const Measure & | other | ) |
Return whether two measures are equal.
The comparison is done both on the value and the unit.