1 // Copyright (c) 1999-2014 OPEN CASCADE SAS
3 // This file is part of Open CASCADE Technology software library.
5 // This library is free software; you can redistribute it and/or modify it under
6 // the terms of the GNU Lesser General Public License version 2.1 as published
7 // by the Free Software Foundation, with special exception defined in the file
8 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
9 // distribution for complete text of the license and disclaimer of any warranty.
11 // Alternatively, this file may be used under the terms of Open CASCADE
12 // commercial license or contractual agreement.
14 #include <StepBasic_WeekOfYearAndDayDate.ixx>
17 StepBasic_WeekOfYearAndDayDate::StepBasic_WeekOfYearAndDayDate () {}
19 void StepBasic_WeekOfYearAndDayDate::Init(
20 const Standard_Integer aYearComponent)
23 StepBasic_Date::Init(aYearComponent);
26 void StepBasic_WeekOfYearAndDayDate::Init(
27 const Standard_Integer aYearComponent,
28 const Standard_Integer aWeekComponent,
29 const Standard_Boolean hasAdayComponent,
30 const Standard_Integer aDayComponent)
32 // --- classe own fields ---
33 weekComponent = aWeekComponent;
34 hasDayComponent = hasAdayComponent;
35 dayComponent = aDayComponent;
36 // --- classe inherited fields ---
37 StepBasic_Date::Init(aYearComponent);
41 void StepBasic_WeekOfYearAndDayDate::SetWeekComponent(const Standard_Integer aWeekComponent)
43 weekComponent = aWeekComponent;
46 Standard_Integer StepBasic_WeekOfYearAndDayDate::WeekComponent() const
51 void StepBasic_WeekOfYearAndDayDate::SetDayComponent(const Standard_Integer aDayComponent)
53 dayComponent = aDayComponent;
54 hasDayComponent = Standard_True;
57 void StepBasic_WeekOfYearAndDayDate::UnSetDayComponent()
59 hasDayComponent = Standard_False;
62 Standard_Integer StepBasic_WeekOfYearAndDayDate::DayComponent() const
67 Standard_Boolean StepBasic_WeekOfYearAndDayDate::HasDayComponent() const
69 return hasDayComponent;