Open CASCADE Technology
6.5.4
|
This class stores in its field all the possible
units of all the unit systems for a given physical
quantity. Each unit's value is expressed in the
S.I. unit system.
#include <Units_Quantity.hxx>
Public Member Functions | |
Units_Quantity (const Standard_CString aname, const Handle< Units_Dimensions > &adimensions, const Handle< Units_UnitsSequence > &aunitssequence) | |
Creates a new Quantity object with <aname> which is the name of the physical quantity, <adimensions> which is the physical dimensions, and <aunitssequence> which describes all the units known for this quantity. | |
TCollection_AsciiString | Name () const |
Returns in a AsciiString from TCollection the name of the quantity. | |
Handle_Units_Dimensions | Dimensions () const |
Returns the physical dimensions of the quantity. | |
Handle_Units_UnitsSequence | Sequence () const |
Returns <theunitssequence>, which is the sequence of all the units stored for this physical quantity. | |
Standard_Boolean | IsEqual (const Standard_CString astring) const |
Returns True if the name of the Quantity <me> is equal to <astring>, False otherwise. | |
void | Dump (const Standard_Integer ashift, const Standard_Integer alevel) const |
Useful for debugging. |
Units_Quantity::Units_Quantity | ( | const Standard_CString | aname, |
const Handle< Units_Dimensions > & | adimensions, | ||
const Handle< Units_UnitsSequence > & | aunitssequence | ||
) |
Handle_Units_Dimensions Units_Quantity::Dimensions | ( | ) | const |
void Units_Quantity::Dump | ( | const Standard_Integer | ashift, |
const Standard_Integer | alevel | ||
) | const |
Standard_Boolean Units_Quantity::IsEqual | ( | const Standard_CString | astring | ) | const |
TCollection_AsciiString Units_Quantity::Name | ( | ) | const |
Handle_Units_UnitsSequence Units_Quantity::Sequence | ( | ) | const |