1 // Created on: 2000-05-10
2 // Created by: Andrey BETENEV
3 // Copyright (c) 2000-2014 OPEN CASCADE SAS
5 // This file is part of Open CASCADE Technology software library.
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.
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
16 // Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.1
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>
36 //=======================================================================
37 //function : StepAP214_ExternalIdentificationItem
39 //=======================================================================
40 StepAP214_ExternalIdentificationItem::StepAP214_ExternalIdentificationItem ()
44 //=======================================================================
47 //=======================================================================
49 Standard_Integer StepAP214_ExternalIdentificationItem::CaseNum (const Handle(Standard_Transient)& ent) const
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;
70 //=======================================================================
71 //function : DocumentFile
73 //=======================================================================
75 Handle(StepBasic_DocumentFile) StepAP214_ExternalIdentificationItem::DocumentFile () const
77 return Handle(StepBasic_DocumentFile)::DownCast(Value());
80 //=======================================================================
81 //function : ExternallyDefinedClass
83 //=======================================================================
85 Handle(StepAP214_ExternallyDefinedClass) StepAP214_ExternalIdentificationItem::ExternallyDefinedClass () const
87 return Handle(StepAP214_ExternallyDefinedClass)::DownCast(Value());
90 //=======================================================================
91 //function : ExternallyDefinedGeneralProperty
93 //=======================================================================
95 Handle(StepAP214_ExternallyDefinedGeneralProperty) StepAP214_ExternalIdentificationItem::ExternallyDefinedGeneralProperty () const
97 return Handle(StepAP214_ExternallyDefinedGeneralProperty)::DownCast(Value());
100 //=======================================================================
101 //function : ProductDefinition
103 //=======================================================================
105 Handle(StepBasic_ProductDefinition) StepAP214_ExternalIdentificationItem::ProductDefinition () const
107 return Handle(StepBasic_ProductDefinition)::DownCast(Value());
110 //=======================================================================
111 //function : AppliedOrganizationAssignment
113 //=======================================================================
115 Handle(StepAP214_AppliedOrganizationAssignment) StepAP214_ExternalIdentificationItem::AppliedOrganizationAssignment () const
117 return Handle(StepAP214_AppliedOrganizationAssignment)::DownCast(Value());
120 //=======================================================================
121 //function : AppliedPersonAndOrganizationAssignment
123 //=======================================================================
125 Handle(StepAP214_AppliedPersonAndOrganizationAssignment) StepAP214_ExternalIdentificationItem::AppliedPersonAndOrganizationAssignment () const
127 return Handle(StepAP214_AppliedPersonAndOrganizationAssignment)::DownCast(Value());
130 //=======================================================================
131 //function : Approval
133 //=======================================================================
135 Handle(StepBasic_Approval) StepAP214_ExternalIdentificationItem::Approval () const
137 return Handle(StepBasic_Approval)::DownCast(Value());
140 //=======================================================================
141 //function : ApprovalStatus
143 //=======================================================================
145 Handle(StepBasic_ApprovalStatus) StepAP214_ExternalIdentificationItem::ApprovalStatus () const
147 return Handle(StepBasic_ApprovalStatus)::DownCast(Value());
150 //=======================================================================
151 //function : ExternalSource
153 //=======================================================================
155 Handle(StepBasic_ExternalSource) StepAP214_ExternalIdentificationItem::ExternalSource () const
157 return Handle(StepBasic_ExternalSource)::DownCast(Value());
160 //=======================================================================
161 //function : OrganizationalAddress
163 //=======================================================================
165 Handle(StepBasic_OrganizationalAddress) StepAP214_ExternalIdentificationItem::OrganizationalAddress () const
167 return Handle(StepBasic_OrganizationalAddress)::DownCast(Value());
170 //=======================================================================
171 //function : SecurityClassification
173 //=======================================================================
175 Handle(StepBasic_SecurityClassification) StepAP214_ExternalIdentificationItem::SecurityClassification () const
177 return Handle(StepBasic_SecurityClassification)::DownCast(Value());
180 //=======================================================================
181 //function : TrimmedCurve
183 //=======================================================================
185 Handle(StepGeom_TrimmedCurve) StepAP214_ExternalIdentificationItem::TrimmedCurve () const
187 return Handle(StepGeom_TrimmedCurve)::DownCast(Value());
189 //=======================================================================
190 //function : VersionedActionRequest
192 //=======================================================================
194 Handle(StepBasic_VersionedActionRequest) StepAP214_ExternalIdentificationItem::VersionedActionRequest () const
196 return Handle(StepBasic_VersionedActionRequest)::DownCast(Value());
199 //=======================================================================
200 //function : DateAndTimeAssignment
202 //=======================================================================
204 Handle(StepBasic_DateAndTimeAssignment) StepAP214_ExternalIdentificationItem::DateAndTimeAssignment () const
206 return Handle(StepBasic_DateAndTimeAssignment)::DownCast(Value());
209 //=======================================================================
210 //function : DateAssignment
212 //=======================================================================
214 Handle(StepBasic_DateAssignment) StepAP214_ExternalIdentificationItem::DateAssignment () const
216 return Handle(StepBasic_DateAssignment)::DownCast(Value());