b311480e |
1 | // Created on: 1999-11-26 |
2 | // Created by: Andrey BETENEV |
3 | // Copyright (c) 1999 Matra Datavision |
973c2be1 |
4 | // Copyright (c) 1999-2014 OPEN CASCADE SAS |
b311480e |
5 | // |
973c2be1 |
6 | // This file is part of Open CASCADE Technology software library. |
b311480e |
7 | // |
d5f74e42 |
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 |
973c2be1 |
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. |
b311480e |
13 | // |
973c2be1 |
14 | // Alternatively, this file may be used under the terms of Open CASCADE |
15 | // commercial license or contractual agreement. |
b311480e |
16 | |
7fd59977 |
17 | // Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.0 |
7fd59977 |
18 | |
19 | #include <StepAP203_DateTimeItem.ixx> |
20 | |
21 | //======================================================================= |
22 | //function : StepAP203_DateTimeItem |
23 | //purpose : |
24 | //======================================================================= |
25 | |
26 | StepAP203_DateTimeItem::StepAP203_DateTimeItem () |
27 | { |
28 | } |
29 | |
30 | //======================================================================= |
31 | //function : CaseNum |
32 | //purpose : |
33 | //======================================================================= |
34 | |
35 | Standard_Integer StepAP203_DateTimeItem::CaseNum (const Handle(Standard_Transient)& ent) const |
36 | { |
37 | if (ent.IsNull()) return 0; |
38 | if (ent->IsKind(STANDARD_TYPE(StepBasic_ProductDefinition))) return 1; |
39 | if (ent->IsKind(STANDARD_TYPE(StepAP203_ChangeRequest))) return 2; |
40 | if (ent->IsKind(STANDARD_TYPE(StepAP203_StartRequest))) return 3; |
41 | if (ent->IsKind(STANDARD_TYPE(StepAP203_Change))) return 4; |
42 | if (ent->IsKind(STANDARD_TYPE(StepAP203_StartWork))) return 5; |
43 | if (ent->IsKind(STANDARD_TYPE(StepBasic_ApprovalPersonOrganization))) return 6; |
44 | if (ent->IsKind(STANDARD_TYPE(StepBasic_Contract))) return 7; |
45 | if (ent->IsKind(STANDARD_TYPE(StepBasic_SecurityClassification))) return 8; |
46 | if (ent->IsKind(STANDARD_TYPE(StepBasic_Certification))) return 9; |
47 | return 0; |
48 | } |
49 | |
50 | //======================================================================= |
51 | //function : ProductDefinition |
52 | //purpose : |
53 | //======================================================================= |
54 | |
55 | Handle(StepBasic_ProductDefinition) StepAP203_DateTimeItem::ProductDefinition () const |
56 | { |
57 | return Handle(StepBasic_ProductDefinition)::DownCast(Value()); |
58 | } |
59 | |
60 | //======================================================================= |
61 | //function : ChangeRequest |
62 | //purpose : |
63 | //======================================================================= |
64 | |
65 | Handle(StepAP203_ChangeRequest) StepAP203_DateTimeItem::ChangeRequest () const |
66 | { |
67 | return Handle(StepAP203_ChangeRequest)::DownCast(Value()); |
68 | } |
69 | |
70 | //======================================================================= |
71 | //function : StartRequest |
72 | //purpose : |
73 | //======================================================================= |
74 | |
75 | Handle(StepAP203_StartRequest) StepAP203_DateTimeItem::StartRequest () const |
76 | { |
77 | return Handle(StepAP203_StartRequest)::DownCast(Value()); |
78 | } |
79 | |
80 | //======================================================================= |
81 | //function : Change |
82 | //purpose : |
83 | //======================================================================= |
84 | |
85 | Handle(StepAP203_Change) StepAP203_DateTimeItem::Change () const |
86 | { |
87 | return Handle(StepAP203_Change)::DownCast(Value()); |
88 | } |
89 | |
90 | //======================================================================= |
91 | //function : StartWork |
92 | //purpose : |
93 | //======================================================================= |
94 | |
95 | Handle(StepAP203_StartWork) StepAP203_DateTimeItem::StartWork () const |
96 | { |
97 | return Handle(StepAP203_StartWork)::DownCast(Value()); |
98 | } |
99 | |
100 | //======================================================================= |
101 | //function : ApprovalPersonOrganization |
102 | //purpose : |
103 | //======================================================================= |
104 | |
105 | Handle(StepBasic_ApprovalPersonOrganization) StepAP203_DateTimeItem::ApprovalPersonOrganization () const |
106 | { |
107 | return Handle(StepBasic_ApprovalPersonOrganization)::DownCast(Value()); |
108 | } |
109 | |
110 | //======================================================================= |
111 | //function : Contract |
112 | //purpose : |
113 | //======================================================================= |
114 | |
115 | Handle(StepBasic_Contract) StepAP203_DateTimeItem::Contract () const |
116 | { |
117 | return Handle(StepBasic_Contract)::DownCast(Value()); |
118 | } |
119 | |
120 | //======================================================================= |
121 | //function : SecurityClassification |
122 | //purpose : |
123 | //======================================================================= |
124 | |
125 | Handle(StepBasic_SecurityClassification) StepAP203_DateTimeItem::SecurityClassification () const |
126 | { |
127 | return Handle(StepBasic_SecurityClassification)::DownCast(Value()); |
128 | } |
129 | |
130 | //======================================================================= |
131 | //function : Certification |
132 | //purpose : |
133 | //======================================================================= |
134 | |
135 | Handle(StepBasic_Certification) StepAP203_DateTimeItem::Certification () const |
136 | { |
137 | return Handle(StepBasic_Certification)::DownCast(Value()); |
138 | } |