Switching the UnitsApi to the new Quantity system

This commit is contained in:
jriegel
2013-12-01 19:23:59 +01:00
parent a7e221fdff
commit 3a3afa0783
23 changed files with 485 additions and 647 deletions

View File

@@ -59,6 +59,13 @@ Quantity::Quantity(double Value, const Unit& unit)
}
double Quantity::getValueAs(const Quantity &q)const
{
return _Value/q.getValue();
}
bool Quantity::operator ==(const Quantity& that) const
{
return (this->_Value == that._Value) && (this->_Unit == that._Unit) ;