summaryrefslogtreecommitdiff
path: root/src/StepBasic/StepBasic_CalendarDate.cxx
blob: 2195eb91b665d75e2b39649ddc21f531857a9715 (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
#include <StepBasic_CalendarDate.ixx>


StepBasic_CalendarDate::StepBasic_CalendarDate ()  {}

void StepBasic_CalendarDate::Init(
	const Standard_Integer aYearComponent)
{

	StepBasic_Date::Init(aYearComponent);
}

void StepBasic_CalendarDate::Init(
	const Standard_Integer aYearComponent,
	const Standard_Integer aDayComponent,
	const Standard_Integer aMonthComponent)
{
	// --- classe own fields ---
	dayComponent = aDayComponent;
	monthComponent = aMonthComponent;
	// --- classe inherited fields ---
	StepBasic_Date::Init(aYearComponent);
}


void StepBasic_CalendarDate::SetDayComponent(const Standard_Integer aDayComponent)
{
	dayComponent = aDayComponent;
}

Standard_Integer StepBasic_CalendarDate::DayComponent() const
{
	return dayComponent;
}

void StepBasic_CalendarDate::SetMonthComponent(const Standard_Integer aMonthComponent)
{
	monthComponent = aMonthComponent;
}

Standard_Integer StepBasic_CalendarDate::MonthComponent() const
{
	return monthComponent;
}