blob: 939f3b172e9ef8cce7561615e12126f97054ce88 (
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
|
#include <StepBasic_WeekOfYearAndDayDate.ixx>
StepBasic_WeekOfYearAndDayDate::StepBasic_WeekOfYearAndDayDate () {}
void StepBasic_WeekOfYearAndDayDate::Init(
const Standard_Integer aYearComponent)
{
StepBasic_Date::Init(aYearComponent);
}
void StepBasic_WeekOfYearAndDayDate::Init(
const Standard_Integer aYearComponent,
const Standard_Integer aWeekComponent,
const Standard_Boolean hasAdayComponent,
const Standard_Integer aDayComponent)
{
// --- classe own fields ---
weekComponent = aWeekComponent;
hasDayComponent = hasAdayComponent;
dayComponent = aDayComponent;
// --- classe inherited fields ---
StepBasic_Date::Init(aYearComponent);
}
void StepBasic_WeekOfYearAndDayDate::SetWeekComponent(const Standard_Integer aWeekComponent)
{
weekComponent = aWeekComponent;
}
Standard_Integer StepBasic_WeekOfYearAndDayDate::WeekComponent() const
{
return weekComponent;
}
void StepBasic_WeekOfYearAndDayDate::SetDayComponent(const Standard_Integer aDayComponent)
{
dayComponent = aDayComponent;
hasDayComponent = Standard_True;
}
void StepBasic_WeekOfYearAndDayDate::UnSetDayComponent()
{
hasDayComponent = Standard_False;
}
Standard_Integer StepBasic_WeekOfYearAndDayDate::DayComponent() const
{
return dayComponent;
}
Standard_Boolean StepBasic_WeekOfYearAndDayDate::HasDayComponent() const
{
return hasDayComponent;
}
|