42cf5bc1 |
1 | // Created on: 1995-12-01 |
2 | // Created by: EXPRESS->CDL V0.2 Translator |
3 | // Copyright (c) 1995-1999 Matra Datavision |
4 | // Copyright (c) 1999-2014 OPEN CASCADE SAS |
5 | // |
6 | // This file is part of Open CASCADE Technology software library. |
7 | // |
8 | // This library is free software; you can redistribute it and/or modify it under |
9 | // the terms of the GNU Lesser General Public License version 2.1 as published |
10 | // by the Free Software Foundation, with special exception defined in the file |
11 | // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT |
12 | // distribution for complete text of the license and disclaimer of any warranty. |
13 | // |
14 | // Alternatively, this file may be used under the terms of Open CASCADE |
15 | // commercial license or contractual agreement. |
16 | |
17 | #ifndef _StepBasic_LocalTime_HeaderFile |
18 | #define _StepBasic_LocalTime_HeaderFile |
19 | |
20 | #include <Standard.hxx> |
21 | #include <Standard_Type.hxx> |
22 | |
23 | #include <Standard_Integer.hxx> |
24 | #include <Standard_Real.hxx> |
25 | #include <Standard_Boolean.hxx> |
25e59720 |
26 | #include <Standard_Transient.hxx> |
42cf5bc1 |
27 | class StepBasic_CoordinatedUniversalTimeOffset; |
28 | |
29 | |
30 | class StepBasic_LocalTime; |
25e59720 |
31 | DEFINE_STANDARD_HANDLE(StepBasic_LocalTime, Standard_Transient) |
42cf5bc1 |
32 | |
33 | |
25e59720 |
34 | class StepBasic_LocalTime : public Standard_Transient |
42cf5bc1 |
35 | { |
36 | |
37 | public: |
38 | |
39 | |
40 | //! Returns a LocalTime |
41 | Standard_EXPORT StepBasic_LocalTime(); |
42 | |
18f7c9a5 |
43 | Standard_EXPORT void Init (const Standard_Integer aHourComponent, const Standard_Boolean hasAminuteComponent, const Standard_Integer aMinuteComponent, const Standard_Boolean hasAsecondComponent, const Standard_Real aSecondComponent, const Handle(StepBasic_CoordinatedUniversalTimeOffset)& aZone); |
42cf5bc1 |
44 | |
45 | Standard_EXPORT void SetHourComponent (const Standard_Integer aHourComponent); |
46 | |
47 | Standard_EXPORT Standard_Integer HourComponent() const; |
48 | |
49 | Standard_EXPORT void SetMinuteComponent (const Standard_Integer aMinuteComponent); |
50 | |
51 | Standard_EXPORT void UnSetMinuteComponent(); |
52 | |
53 | Standard_EXPORT Standard_Integer MinuteComponent() const; |
54 | |
55 | Standard_EXPORT Standard_Boolean HasMinuteComponent() const; |
56 | |
57 | Standard_EXPORT void SetSecondComponent (const Standard_Real aSecondComponent); |
58 | |
59 | Standard_EXPORT void UnSetSecondComponent(); |
60 | |
61 | Standard_EXPORT Standard_Real SecondComponent() const; |
62 | |
63 | Standard_EXPORT Standard_Boolean HasSecondComponent() const; |
64 | |
65 | Standard_EXPORT void SetZone (const Handle(StepBasic_CoordinatedUniversalTimeOffset)& aZone); |
66 | |
67 | Standard_EXPORT Handle(StepBasic_CoordinatedUniversalTimeOffset) Zone() const; |
68 | |
69 | |
70 | |
71 | |
25e59720 |
72 | DEFINE_STANDARD_RTTIEXT(StepBasic_LocalTime,Standard_Transient) |
42cf5bc1 |
73 | |
74 | protected: |
75 | |
76 | |
77 | |
78 | |
79 | private: |
80 | |
81 | |
82 | Standard_Integer hourComponent; |
83 | Standard_Integer minuteComponent; |
84 | Standard_Real secondComponent; |
85 | Handle(StepBasic_CoordinatedUniversalTimeOffset) zone; |
86 | Standard_Boolean hasMinuteComponent; |
87 | Standard_Boolean hasSecondComponent; |
88 | |
89 | |
90 | }; |
91 | |
92 | |
93 | |
94 | |
95 | |
96 | |
97 | |
98 | #endif // _StepBasic_LocalTime_HeaderFile |