blob: cfb238071b10cb88fe6be3b1ef11fc6321a6ff2f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
#include <StepBasic_SiUnitAndRatioUnit.ixx>
#include <StepBasic_SiUnit.hxx>
#include <StepBasic_RatioUnit.hxx>
StepBasic_SiUnitAndRatioUnit::StepBasic_SiUnitAndRatioUnit ()
{
}
void StepBasic_SiUnitAndRatioUnit::Init(const Handle(StepBasic_DimensionalExponents)& aDimensions)
{
StepBasic_NamedUnit::Init(aDimensions);
}
void StepBasic_SiUnitAndRatioUnit::Init(const Standard_Boolean hasAprefix,
const StepBasic_SiPrefix aPrefix,
const StepBasic_SiUnitName aName)
{
// --- class inherited fields ---
// --- ANDOR componant fields ---
StepBasic_SiUnit::Init(hasAprefix, aPrefix, aName);
// --- ANDOR componant fields ---
ratioUnit = new StepBasic_RatioUnit();
Handle(StepBasic_DimensionalExponents) aDimensions;
aDimensions.Nullify();
ratioUnit->Init(aDimensions);
}
void StepBasic_SiUnitAndRatioUnit::SetRatioUnit(const Handle(StepBasic_RatioUnit)& aRatioUnit)
{
ratioUnit = aRatioUnit;
}
Handle(StepBasic_RatioUnit) StepBasic_SiUnitAndRatioUnit::RatioUnit() const
{
return ratioUnit;
}
|