0027336: Update STEP entities, according to AP242
[occt.git] / src / StepAP214 / StepAP214_ExternalIdentificationItem.cxx
1 // Created on: 2000-05-10
2 // Created by: Andrey BETENEV
3 // Copyright (c) 2000-2014 OPEN CASCADE SAS
4 //
5 // This file is part of Open CASCADE Technology software library.
6 //
7 // This library is free software; you can redistribute it and/or modify it under
8 // the terms of the GNU Lesser General Public License version 2.1 as published
9 // by the Free Software Foundation, with special exception defined in the file
10 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
11 // distribution for complete text of the license and disclaimer of any warranty.
12 //
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
15
16 // Generator:   ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.1
17
18 #include <Standard_Transient.hxx>
19 #include <StepAP214_AppliedOrganizationAssignment.hxx>
20 #include <StepAP214_AppliedPersonAndOrganizationAssignment.hxx>
21 #include <StepAP214_ExternalIdentificationItem.hxx>
22 #include <StepAP214_ExternallyDefinedClass.hxx>
23 #include <StepAP214_ExternallyDefinedGeneralProperty.hxx>
24 #include <StepBasic_Approval.hxx>
25 #include <StepBasic_ApprovalStatus.hxx>
26 #include <StepBasic_DateAndTimeAssignment.hxx>
27 #include <StepBasic_DateAssignment.hxx>
28 #include <StepBasic_DocumentFile.hxx>
29 #include <StepBasic_ExternalSource.hxx>
30 #include <StepBasic_OrganizationalAddress.hxx>
31 #include <StepBasic_ProductDefinition.hxx>
32 #include <StepBasic_SecurityClassification.hxx>
33 #include <StepBasic_VersionedActionRequest.hxx>
34 #include <StepGeom_TrimmedCurve.hxx>
35
36 //=======================================================================
37 //function : StepAP214_ExternalIdentificationItem
38 //purpose  : 
39 //=======================================================================
40 StepAP214_ExternalIdentificationItem::StepAP214_ExternalIdentificationItem ()
41 {
42 }
43
44 //=======================================================================
45 //function : CaseNum
46 //purpose  : 
47 //=======================================================================
48
49 Standard_Integer StepAP214_ExternalIdentificationItem::CaseNum (const Handle(Standard_Transient)& ent) const
50 {
51   if (ent.IsNull()) return 0;
52   if (ent->IsKind(STANDARD_TYPE(StepBasic_DocumentFile))) return 1;
53   if (ent->IsKind(STANDARD_TYPE(StepAP214_ExternallyDefinedClass))) return 2;
54   if (ent->IsKind(STANDARD_TYPE(StepAP214_ExternallyDefinedGeneralProperty))) return 3;
55   if (ent->IsKind(STANDARD_TYPE(StepBasic_ProductDefinition))) return 4;
56   if (ent->IsKind(STANDARD_TYPE(StepAP214_AppliedOrganizationAssignment))) return 5;
57   if (ent->IsKind(STANDARD_TYPE(StepAP214_AppliedPersonAndOrganizationAssignment))) return 6;
58   if (ent->IsKind(STANDARD_TYPE(StepBasic_Approval))) return 7;
59   if (ent->IsKind(STANDARD_TYPE(StepBasic_ApprovalStatus))) return 8;
60   if (ent->IsKind(STANDARD_TYPE(StepBasic_ExternalSource))) return 9;
61   if (ent->IsKind(STANDARD_TYPE(StepBasic_OrganizationalAddress))) return 10;
62   if (ent->IsKind(STANDARD_TYPE(StepBasic_SecurityClassification))) return 11;
63   if (ent->IsKind(STANDARD_TYPE(StepGeom_TrimmedCurve))) return 12;
64   if (ent->IsKind(STANDARD_TYPE(StepBasic_VersionedActionRequest))) return 13;
65   if (ent->IsKind(STANDARD_TYPE(StepBasic_DateAndTimeAssignment))) return 14;
66   if (ent->IsKind(STANDARD_TYPE(StepBasic_DateAssignment))) return 15;
67   return 0;
68 }
69
70 //=======================================================================
71 //function : DocumentFile
72 //purpose  : 
73 //=======================================================================
74
75 Handle(StepBasic_DocumentFile) StepAP214_ExternalIdentificationItem::DocumentFile () const
76 {
77   return Handle(StepBasic_DocumentFile)::DownCast(Value());
78 }
79
80 //=======================================================================
81 //function : ExternallyDefinedClass
82 //purpose  : 
83 //=======================================================================
84
85 Handle(StepAP214_ExternallyDefinedClass) StepAP214_ExternalIdentificationItem::ExternallyDefinedClass () const
86 {
87   return Handle(StepAP214_ExternallyDefinedClass)::DownCast(Value());
88 }
89
90 //=======================================================================
91 //function : ExternallyDefinedGeneralProperty
92 //purpose  : 
93 //=======================================================================
94
95 Handle(StepAP214_ExternallyDefinedGeneralProperty) StepAP214_ExternalIdentificationItem::ExternallyDefinedGeneralProperty () const
96 {
97   return Handle(StepAP214_ExternallyDefinedGeneralProperty)::DownCast(Value());
98 }
99
100 //=======================================================================
101 //function : ProductDefinition
102 //purpose  : 
103 //=======================================================================
104
105 Handle(StepBasic_ProductDefinition) StepAP214_ExternalIdentificationItem::ProductDefinition () const
106 {
107   return Handle(StepBasic_ProductDefinition)::DownCast(Value());
108 }
109
110 //=======================================================================
111 //function : AppliedOrganizationAssignment
112 //purpose  : 
113 //=======================================================================
114
115 Handle(StepAP214_AppliedOrganizationAssignment) StepAP214_ExternalIdentificationItem::AppliedOrganizationAssignment () const
116 {
117   return Handle(StepAP214_AppliedOrganizationAssignment)::DownCast(Value());
118 }
119
120 //=======================================================================
121 //function : AppliedPersonAndOrganizationAssignment
122 //purpose  : 
123 //=======================================================================
124
125 Handle(StepAP214_AppliedPersonAndOrganizationAssignment) StepAP214_ExternalIdentificationItem::AppliedPersonAndOrganizationAssignment () const
126 {
127   return Handle(StepAP214_AppliedPersonAndOrganizationAssignment)::DownCast(Value());
128 }
129
130 //=======================================================================
131 //function : Approval
132 //purpose  : 
133 //=======================================================================
134
135 Handle(StepBasic_Approval) StepAP214_ExternalIdentificationItem::Approval () const
136 {
137   return Handle(StepBasic_Approval)::DownCast(Value());
138 }
139
140 //=======================================================================
141 //function : ApprovalStatus
142 //purpose  : 
143 //=======================================================================
144
145 Handle(StepBasic_ApprovalStatus) StepAP214_ExternalIdentificationItem::ApprovalStatus () const
146 {
147   return Handle(StepBasic_ApprovalStatus)::DownCast(Value());
148 }
149
150 //=======================================================================
151 //function : ExternalSource
152 //purpose  : 
153 //=======================================================================
154
155 Handle(StepBasic_ExternalSource) StepAP214_ExternalIdentificationItem::ExternalSource () const
156 {
157   return Handle(StepBasic_ExternalSource)::DownCast(Value());
158 }
159
160 //=======================================================================
161 //function : OrganizationalAddress
162 //purpose  : 
163 //=======================================================================
164
165 Handle(StepBasic_OrganizationalAddress) StepAP214_ExternalIdentificationItem::OrganizationalAddress () const
166 {
167   return Handle(StepBasic_OrganizationalAddress)::DownCast(Value());
168 }
169
170 //=======================================================================
171 //function : SecurityClassification
172 //purpose  : 
173 //=======================================================================
174
175 Handle(StepBasic_SecurityClassification) StepAP214_ExternalIdentificationItem::SecurityClassification () const
176 {
177   return Handle(StepBasic_SecurityClassification)::DownCast(Value());
178 }
179
180 //=======================================================================
181 //function : TrimmedCurve
182 //purpose  : 
183 //=======================================================================
184
185 Handle(StepGeom_TrimmedCurve) StepAP214_ExternalIdentificationItem::TrimmedCurve () const
186 {
187   return Handle(StepGeom_TrimmedCurve)::DownCast(Value());
188 }
189 //=======================================================================
190 //function : VersionedActionRequest
191 //purpose  : 
192 //=======================================================================
193
194 Handle(StepBasic_VersionedActionRequest) StepAP214_ExternalIdentificationItem::VersionedActionRequest () const
195 {
196   return Handle(StepBasic_VersionedActionRequest)::DownCast(Value());
197 }
198
199 //=======================================================================
200 //function : DateAndTimeAssignment
201 //purpose  : 
202 //=======================================================================
203
204 Handle(StepBasic_DateAndTimeAssignment) StepAP214_ExternalIdentificationItem::DateAndTimeAssignment () const
205 {
206   return Handle(StepBasic_DateAndTimeAssignment)::DownCast(Value());
207 }
208
209 //=======================================================================
210 //function : DateAssignment
211 //purpose  : 
212 //=======================================================================
213
214 Handle(StepBasic_DateAssignment) StepAP214_ExternalIdentificationItem::DateAssignment () const
215 {
216   return Handle(StepBasic_DateAssignment)::DownCast(Value());
217 }