Open CASCADE Technology 6.6.0
Public Member Functions
Units_Quantity Class Reference

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>

Inheritance diagram for Units_Quantity:
Inheritance graph
[legend]

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.


Constructor & Destructor Documentation

Units_Quantity::Units_Quantity ( const Standard_CString  aname,
const Handle< Units_Dimensions > &  adimensions,
const Handle< Units_UnitsSequence > &  aunitssequence 
)

Member Function Documentation

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

The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines