Open CASCADE Technology 6.6.0
|
This class creates a dictionary of all the units
you want to know.
#include <Units_UnitsDictionary.hxx>
Public Member Functions | |
Units_UnitsDictionary () | |
Returns an empty instance of UnitsDictionary. | |
void | Creates (const Standard_CString afilename) |
Returns a UnitsDictionary object which contains the sequence of all the units you want to consider, physical quantity by physical quantity. | |
Handle_Units_QuantitiesSequence | Sequence () const |
Returns the head of the sequence of physical quantities. | |
Standard_Boolean | UpToDate () const |
Returns true if there has been no modification of the file Units.dat since the creation of the dictionary object, false otherwise. | |
TCollection_AsciiString | ActiveUnit (const Standard_CString aquantity) const |
Returns for <aquantity> the active unit. | |
void | Dump (const Standard_Integer alevel) const |
Dumps only the sequence of quantities without the units if <alevel> is equal to zero, and for each quantity all the units stored if <alevel> is equal to one. | |
void | Dump (const Handle< Units_Dimensions > &adimensions) const |
Dumps for a designated physical dimensions <adimensions> all the previously stored units. |
Units_UnitsDictionary::Units_UnitsDictionary | ( | ) |
TCollection_AsciiString Units_UnitsDictionary::ActiveUnit | ( | const Standard_CString | aquantity | ) | const |
void Units_UnitsDictionary::Creates | ( | const Standard_CString | afilename | ) |
void Units_UnitsDictionary::Dump | ( | const Standard_Integer | alevel | ) | const |
void Units_UnitsDictionary::Dump | ( | const Handle< Units_Dimensions > & | adimensions | ) | const |
Handle_Units_QuantitiesSequence Units_UnitsDictionary::Sequence | ( | ) | const |
Standard_Boolean Units_UnitsDictionary::UpToDate | ( | ) | const |