Open CASCADE Technology
7.3.0
|
This class provides all the services to explore UnitsSystem or UnitsDictionary. More...
#include <Units_Explorer.hxx>
Public Member Functions | |
Units_Explorer () | |
Empty contructor of the class. More... | |
Units_Explorer (const Handle< Units_UnitsSystem > &aunitssystem) | |
Creates a new instance of the class, initialized with the UnitsSystem <aunitssystem>. More... | |
Units_Explorer (const Handle< Units_UnitsDictionary > &aunitsdictionary) | |
Creates a new instance of the class, initialized with the UnitsDictionary <aunitsdictionary>. More... | |
Units_Explorer (const Handle< Units_UnitsSystem > &aunitssystem, const Standard_CString aquantity) | |
Creates a new instance of the class, initialized with the UnitsSystem <aunitssystem> and positioned at the quantity <aquantity>. More... | |
Units_Explorer (const Handle< Units_UnitsDictionary > &aunitsdictionary, const Standard_CString aquantity) | |
Creates a new instance of the class, initialized with the UnitsDictionary <aunitsdictionary> and positioned at the quantity <aquantity>. More... | |
void | Init (const Handle< Units_UnitsSystem > &aunitssystem) |
Initializes the instance of the class with the UnitsSystem <aunitssystem>. More... | |
void | Init (const Handle< Units_UnitsDictionary > &aunitsdictionary) |
Initializes the instance of the class with the UnitsDictionary <aunitsdictionary>. More... | |
void | Init (const Handle< Units_UnitsSystem > &aunitssystem, const Standard_CString aquantity) |
Initializes the instance of the class with the UnitsSystem <aunitssystem> and positioned at the quantity <aquantity>. More... | |
void | Init (const Handle< Units_UnitsDictionary > &aunitsdictionary, const Standard_CString aquantity) |
Initializes the instance of the class with the UnitsDictionary <aunitsdictionary> and positioned at the quantity <aquantity>. More... | |
Standard_Boolean | MoreQuantity () const |
Returns True if there is another Quantity to explore, False otherwise. More... | |
void | NextQuantity () |
Sets the next Quantity current. More... | |
TCollection_AsciiString | Quantity () const |
Returns the name of the current Quantity. More... | |
Standard_Boolean | MoreUnit () const |
Returns True if there is another Unit to explore, False otherwise. More... | |
void | NextUnit () |
Sets the next Unit current. More... | |
TCollection_AsciiString | Unit () const |
Returns the name of the current unit. More... | |
Standard_Boolean | IsActive () const |
If the units system to explore is a user system, returns True if the current unit is active, False otherwise. More... | |
This class provides all the services to explore UnitsSystem or UnitsDictionary.
Units_Explorer::Units_Explorer | ( | ) |
Empty contructor of the class.
Units_Explorer::Units_Explorer | ( | const Handle< Units_UnitsSystem > & | aunitssystem | ) |
Creates a new instance of the class, initialized with the UnitsSystem <aunitssystem>.
Units_Explorer::Units_Explorer | ( | const Handle< Units_UnitsDictionary > & | aunitsdictionary | ) |
Creates a new instance of the class, initialized with the UnitsDictionary <aunitsdictionary>.
Units_Explorer::Units_Explorer | ( | const Handle< Units_UnitsSystem > & | aunitssystem, |
const Standard_CString | aquantity | ||
) |
Creates a new instance of the class, initialized with the UnitsSystem <aunitssystem> and positioned at the quantity <aquantity>.
Units_Explorer::Units_Explorer | ( | const Handle< Units_UnitsDictionary > & | aunitsdictionary, |
const Standard_CString | aquantity | ||
) |
Creates a new instance of the class, initialized with the UnitsDictionary <aunitsdictionary> and positioned at the quantity <aquantity>.
void Units_Explorer::Init | ( | const Handle< Units_UnitsSystem > & | aunitssystem | ) |
Initializes the instance of the class with the UnitsSystem <aunitssystem>.
void Units_Explorer::Init | ( | const Handle< Units_UnitsDictionary > & | aunitsdictionary | ) |
Initializes the instance of the class with the UnitsDictionary <aunitsdictionary>.
void Units_Explorer::Init | ( | const Handle< Units_UnitsSystem > & | aunitssystem, |
const Standard_CString | aquantity | ||
) |
Initializes the instance of the class with the UnitsSystem <aunitssystem> and positioned at the quantity <aquantity>.
void Units_Explorer::Init | ( | const Handle< Units_UnitsDictionary > & | aunitsdictionary, |
const Standard_CString | aquantity | ||
) |
Initializes the instance of the class with the UnitsDictionary <aunitsdictionary> and positioned at the quantity <aquantity>.
Standard_Boolean Units_Explorer::IsActive | ( | ) | const |
If the units system to explore is a user system, returns True if the current unit is active, False otherwise.
If the units system to explore is the units dictionary, returns True if the current unit is the S.I. unit.
Standard_Boolean Units_Explorer::MoreQuantity | ( | ) | const |
Returns True if there is another Quantity to explore, False otherwise.
Standard_Boolean Units_Explorer::MoreUnit | ( | ) | const |
Returns True if there is another Unit to explore, False otherwise.
void Units_Explorer::NextQuantity | ( | ) |
Sets the next Quantity current.
void Units_Explorer::NextUnit | ( | ) |
Sets the next Unit current.
TCollection_AsciiString Units_Explorer::Quantity | ( | ) | const |
Returns the name of the current Quantity.
TCollection_AsciiString Units_Explorer::Unit | ( | ) | const |
Returns the name of the current unit.