7fd59977 |
1 | #include <StepBasic_CalendarDate.ixx> |
2 | |
3 | |
4 | StepBasic_CalendarDate::StepBasic_CalendarDate () {} |
5 | |
6 | void StepBasic_CalendarDate::Init( |
7 | const Standard_Integer aYearComponent) |
8 | { |
9 | |
10 | StepBasic_Date::Init(aYearComponent); |
11 | } |
12 | |
13 | void StepBasic_CalendarDate::Init( |
14 | const Standard_Integer aYearComponent, |
15 | const Standard_Integer aDayComponent, |
16 | const Standard_Integer aMonthComponent) |
17 | { |
18 | // --- classe own fields --- |
19 | dayComponent = aDayComponent; |
20 | monthComponent = aMonthComponent; |
21 | // --- classe inherited fields --- |
22 | StepBasic_Date::Init(aYearComponent); |
23 | } |
24 | |
25 | |
26 | void StepBasic_CalendarDate::SetDayComponent(const Standard_Integer aDayComponent) |
27 | { |
28 | dayComponent = aDayComponent; |
29 | } |
30 | |
31 | Standard_Integer StepBasic_CalendarDate::DayComponent() const |
32 | { |
33 | return dayComponent; |
34 | } |
35 | |
36 | void StepBasic_CalendarDate::SetMonthComponent(const Standard_Integer aMonthComponent) |
37 | { |
38 | monthComponent = aMonthComponent; |
39 | } |
40 | |
41 | Standard_Integer StepBasic_CalendarDate::MonthComponent() const |
42 | { |
43 | return monthComponent; |
44 | } |