Open CASCADE Technology 6.6.0
|
This class describes all the facilities to
manipulate and compute units contained in a string
expression.
#include <Units_UnitSentence.hxx>
Public Member Functions | |
Units_UnitSentence (const Standard_CString astring) | |
Creates and returns a UnitSentence. The string <astring> describes in natural language the unit or the composed unit to be analysed. | |
Units_UnitSentence (const Standard_CString astring, const Handle< Units_QuantitiesSequence > &aquantitiessequence) | |
Creates and returns a UnitSentence. The string <astring> describes in natural language the unit to be analysed. The sequence of physical quantities <asequenceofquantities> describes the available dictionary of units you want to use. | |
void | Analyse () |
Analyzes the sequence of tokens created by the constructor to find the true significance of each token. | |
void | SetUnits (const Handle< Units_QuantitiesSequence > &aquantitiessequence) |
For each token which represents a unit, finds in the sequence of physical quantities all the characteristics of the unit found. |
Units_UnitSentence::Units_UnitSentence | ( | const Standard_CString | astring | ) |
Units_UnitSentence::Units_UnitSentence | ( | const Standard_CString | astring, |
const Handle< Units_QuantitiesSequence > & | aquantitiessequence | ||
) |
void Units_UnitSentence::Analyse | ( | ) |
void Units_UnitSentence::SetUnits | ( | const Handle< Units_QuantitiesSequence > & | aquantitiessequence | ) |