#include <Units_ShiftedUnit.hxx>
Inheritance diagram for Units_ShiftedUnit:

Public Member Functions | |
| Standard_EXPORT | Units_ShiftedUnit (const Standard_CString aname, const Standard_CString asymbol, const Standard_Real avalue, const Standard_Real amove, const Handle(Units_Quantity)&aquantity) |
| Creates and returns a shifted unit. <aname> is the name of the unit, <asymbol> is the usual abbreviation of the unit, <avalue> is the value in relation to the International System of Units, and <amove> is the gap in relation to another unit. For example Celcius dregee of temperature is an instance of ShiftedUnit with <avalue> equal to 1. and <amove> equal to 273.15. . | |
| Standard_EXPORT | Units_ShiftedUnit (const Standard_CString aname, const Standard_CString asymbol) |
| Creates and returns a unit. <aname> is the name of the unit, <asymbol> is the usual abbreviation of the unit. . | |
| Standard_EXPORT | Units_ShiftedUnit (const Standard_CString aname) |
| Creates and returns a unit. <aname> is the name of the unit. . | |
| Standard_EXPORT void | Move (const Standard_Real amove) |
| Sets the field <themove> to <amove> . | |
| Standard_EXPORT Standard_Real | Move () const |
| Returns the shifted value <themove>. . | |
| virtual Standard_EXPORT Handle_Units_Token | Token () const |
| This redefined method returns a ShiftedToken object. . | |
| virtual Standard_EXPORT void | Dump (const Standard_Integer ashift, const Standard_Integer alevel) const |
| Useful for debugging . | |
| Standard_EXPORT const | Handle (Standard_Type)&DynamicType() const |
Private Attributes | |
| Standard_Real | themove |
|
||||||||||||||||||||||||
|
|
|
||||||||||||
|
|
|
|
|
|
||||||||||||
|
Reimplemented from Units_Unit. |
|
|
Reimplemented from Units_Unit. |
|
|
|
|
|
|
|
|
Reimplemented from Units_Unit. |
|
|
|
1.4.1