Implement the three major unit system schemas

This commit is contained in:
jriegel
2013-12-05 18:16:31 +01:00
parent b52de075e1
commit eb5cc8ed6c
14 changed files with 220 additions and 51 deletions

View File

@@ -207,8 +207,7 @@ void QuantityPy::setUnit(Py::Object arg)
Py::String QuantityPy::getUserString(void) const
{
//return Py::String();
throw Py::AttributeError("Not yet implemented");
return Py::String(getQuantityPtr()->getUserString().toLatin1());
}
PyObject *QuantityPy::getCustomAttributes(const char* /*attr*/) const