blob: ba9aa8762e11ddd1eab8e852da5fc021c2246b48 (
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
|
#include <StepBasic_LocalTime.ixx>
StepBasic_LocalTime::StepBasic_LocalTime () {}
void StepBasic_LocalTime::Init(
const Standard_Integer aHourComponent,
const Standard_Boolean hasAminuteComponent,
const Standard_Integer aMinuteComponent,
const Standard_Boolean hasAsecondComponent,
const Standard_Real aSecondComponent,
const Handle(StepBasic_CoordinatedUniversalTimeOffset)& aZone)
{
// --- classe own fields ---
hourComponent = aHourComponent;
hasMinuteComponent = hasAminuteComponent;
minuteComponent = aMinuteComponent;
hasSecondComponent = hasAsecondComponent;
secondComponent = aSecondComponent;
zone = aZone;
}
void StepBasic_LocalTime::SetHourComponent(const Standard_Integer aHourComponent)
{
hourComponent = aHourComponent;
}
Standard_Integer StepBasic_LocalTime::HourComponent() const
{
return hourComponent;
}
void StepBasic_LocalTime::SetMinuteComponent(const Standard_Integer aMinuteComponent)
{
minuteComponent = aMinuteComponent;
hasMinuteComponent = Standard_True;
}
void StepBasic_LocalTime::UnSetMinuteComponent()
{
hasMinuteComponent = Standard_False;
}
Standard_Integer StepBasic_LocalTime::MinuteComponent() const
{
return minuteComponent;
}
Standard_Boolean StepBasic_LocalTime::HasMinuteComponent() const
{
return hasMinuteComponent;
}
void StepBasic_LocalTime::SetSecondComponent(const Standard_Real aSecondComponent)
{
secondComponent = aSecondComponent;
hasSecondComponent = Standard_True;
}
void StepBasic_LocalTime::UnSetSecondComponent()
{
hasSecondComponent = Standard_False;
}
Standard_Real StepBasic_LocalTime::SecondComponent() const
{
return secondComponent;
}
Standard_Boolean StepBasic_LocalTime::HasSecondComponent() const
{
return hasSecondComponent;
}
void StepBasic_LocalTime::SetZone(const Handle(StepBasic_CoordinatedUniversalTimeOffset)& aZone)
{
zone = aZone;
}
Handle(StepBasic_CoordinatedUniversalTimeOffset) StepBasic_LocalTime::Zone() const
{
return zone;
}
|