0030686: Visualization, SelectMgr_ViewerSelector - sorting issues of transformation...
[occt.git] / src / StepBasic / StepBasic_CoordinatedUniversalTimeOffset.cxx
CommitLineData
973c2be1 1// Copyright (c) 1999-2014 OPEN CASCADE SAS
b311480e 2//
973c2be1 3// This file is part of Open CASCADE Technology software library.
b311480e 4//
d5f74e42 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
973c2be1 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.
b311480e 10//
973c2be1 11// Alternatively, this file may be used under the terms of Open CASCADE
12// commercial license or contractual agreement.
b311480e 13
7fd59977 14
42cf5bc1 15#include <Standard_Type.hxx>
16#include <StepBasic_CoordinatedUniversalTimeOffset.hxx>
7fd59977 17
25e59720 18IMPLEMENT_STANDARD_RTTIEXT(StepBasic_CoordinatedUniversalTimeOffset,Standard_Transient)
92efcf78 19
7fd59977 20StepBasic_CoordinatedUniversalTimeOffset::StepBasic_CoordinatedUniversalTimeOffset () {}
21
22void StepBasic_CoordinatedUniversalTimeOffset::Init(
23 const Standard_Integer aHourOffset,
24 const Standard_Boolean hasAminuteOffset,
25 const Standard_Integer aMinuteOffset,
26 const StepBasic_AheadOrBehind aSense)
27{
28 // --- classe own fields ---
29 hourOffset = aHourOffset;
30 hasMinuteOffset = hasAminuteOffset;
31 minuteOffset = aMinuteOffset;
32 sense = aSense;
33}
34
35
36void StepBasic_CoordinatedUniversalTimeOffset::SetHourOffset(const Standard_Integer aHourOffset)
37{
38 hourOffset = aHourOffset;
39}
40
41Standard_Integer StepBasic_CoordinatedUniversalTimeOffset::HourOffset() const
42{
43 return hourOffset;
44}
45
46void StepBasic_CoordinatedUniversalTimeOffset::SetMinuteOffset(const Standard_Integer aMinuteOffset)
47{
48 minuteOffset = aMinuteOffset;
49 hasMinuteOffset = Standard_True;
50}
51
52void StepBasic_CoordinatedUniversalTimeOffset::UnSetMinuteOffset()
53{
54 hasMinuteOffset = Standard_False;
55}
56
57Standard_Integer StepBasic_CoordinatedUniversalTimeOffset::MinuteOffset() const
58{
59 return minuteOffset;
60}
61
62Standard_Boolean StepBasic_CoordinatedUniversalTimeOffset::HasMinuteOffset() const
63{
64 return hasMinuteOffset;
65}
66
67void StepBasic_CoordinatedUniversalTimeOffset::SetSense(const StepBasic_AheadOrBehind aSense)
68{
69 sense = aSense;
70}
71
72StepBasic_AheadOrBehind StepBasic_CoordinatedUniversalTimeOffset::Sense() const
73{
74 return sense;
75}