themeasurement=avalue;
Units_UnitSentence unit(aunit);
if(!unit.IsDone()) {
+#ifdef UNITS_DEB
cout<<"can not create Units_Measurement - incorrect unit"<<endl;
+#endif
myHasToken = Standard_False;
}
else {
themeasurement = oldtoken->Multiplied(themeasurement);
themeasurement = newtoken->Divided(themeasurement);
}
+#ifdef UNITS_DEB
else {
cout<<" The units don't have the same physical dimensions"<<endl;
}
+#endif
}