1 // Created on: 1999-11-26
2 // Created by: Andrey BETENEV
3 // Copyright (c) 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 // Generator:	ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.0
18 
19 #include <Standard_Transient.hxx>
20 #include <StepAP203_ApprovedItem.hxx>
21 #include <StepAP203_Change.hxx>
22 #include <StepAP203_ChangeRequest.hxx>
23 #include <StepAP203_StartRequest.hxx>
24 #include <StepAP203_StartWork.hxx>
25 #include <StepBasic_Certification.hxx>
26 #include <StepBasic_Contract.hxx>
27 #include <StepBasic_ProductDefinition.hxx>
28 #include <StepBasic_ProductDefinitionFormation.hxx>
29 #include <StepBasic_SecurityClassification.hxx>
30 #include <StepRepr_ConfigurationEffectivity.hxx>
31 #include <StepRepr_ConfigurationItem.hxx>
32 
33 //=======================================================================
34 //function : StepAP203_ApprovedItem
35 //purpose  :
36 //=======================================================================
StepAP203_ApprovedItem()37 StepAP203_ApprovedItem::StepAP203_ApprovedItem ()
38 {
39 }
40 
41 //=======================================================================
42 //function : CaseNum
43 //purpose  :
44 //=======================================================================
45 
CaseNum(const Handle (Standard_Transient)& ent) const46 Standard_Integer StepAP203_ApprovedItem::CaseNum (const Handle(Standard_Transient)& ent) const
47 {
48   if (ent.IsNull()) return 0;
49   if (ent->IsKind(STANDARD_TYPE(StepBasic_ProductDefinitionFormation))) return 1;
50   if (ent->IsKind(STANDARD_TYPE(StepBasic_ProductDefinition))) return 2;
51   if (ent->IsKind(STANDARD_TYPE(StepRepr_ConfigurationEffectivity))) return 3;
52   if (ent->IsKind(STANDARD_TYPE(StepRepr_ConfigurationItem))) return 4;
53   if (ent->IsKind(STANDARD_TYPE(StepBasic_SecurityClassification))) return 5;
54   if (ent->IsKind(STANDARD_TYPE(StepAP203_ChangeRequest))) return 6;
55   if (ent->IsKind(STANDARD_TYPE(StepAP203_Change))) return 7;
56   if (ent->IsKind(STANDARD_TYPE(StepAP203_StartRequest))) return 8;
57   if (ent->IsKind(STANDARD_TYPE(StepAP203_StartWork))) return 9;
58   if (ent->IsKind(STANDARD_TYPE(StepBasic_Certification))) return 10;
59   if (ent->IsKind(STANDARD_TYPE(StepBasic_Contract))) return 11;
60   return 0;
61 }
62 
63 //=======================================================================
64 //function : ProductDefinitionFormation
65 //purpose  :
66 //=======================================================================
67 
Handle(StepBasic_ProductDefinitionFormation)68 Handle(StepBasic_ProductDefinitionFormation) StepAP203_ApprovedItem::ProductDefinitionFormation () const
69 {
70   return Handle(StepBasic_ProductDefinitionFormation)::DownCast(Value());
71 }
72 
73 //=======================================================================
74 //function : ProductDefinition
75 //purpose  :
76 //=======================================================================
77 
Handle(StepBasic_ProductDefinition)78 Handle(StepBasic_ProductDefinition) StepAP203_ApprovedItem::ProductDefinition () const
79 {
80   return Handle(StepBasic_ProductDefinition)::DownCast(Value());
81 }
82 
83 //=======================================================================
84 //function : ConfigurationEffectivity
85 //purpose  :
86 //=======================================================================
87 
Handle(StepRepr_ConfigurationEffectivity)88 Handle(StepRepr_ConfigurationEffectivity) StepAP203_ApprovedItem::ConfigurationEffectivity () const
89 {
90   return Handle(StepRepr_ConfigurationEffectivity)::DownCast(Value());
91 }
92 
93 //=======================================================================
94 //function : ConfigurationItem
95 //purpose  :
96 //=======================================================================
97 
Handle(StepRepr_ConfigurationItem)98 Handle(StepRepr_ConfigurationItem) StepAP203_ApprovedItem::ConfigurationItem () const
99 {
100   return Handle(StepRepr_ConfigurationItem)::DownCast(Value());
101 }
102 
103 //=======================================================================
104 //function : SecurityClassification
105 //purpose  :
106 //=======================================================================
107 
Handle(StepBasic_SecurityClassification)108 Handle(StepBasic_SecurityClassification) StepAP203_ApprovedItem::SecurityClassification () const
109 {
110   return Handle(StepBasic_SecurityClassification)::DownCast(Value());
111 }
112 
113 //=======================================================================
114 //function : ChangeRequest
115 //purpose  :
116 //=======================================================================
117 
Handle(StepAP203_ChangeRequest)118 Handle(StepAP203_ChangeRequest) StepAP203_ApprovedItem::ChangeRequest () const
119 {
120   return Handle(StepAP203_ChangeRequest)::DownCast(Value());
121 }
122 
123 //=======================================================================
124 //function : Change
125 //purpose  :
126 //=======================================================================
127 
Handle(StepAP203_Change)128 Handle(StepAP203_Change) StepAP203_ApprovedItem::Change () const
129 {
130   return Handle(StepAP203_Change)::DownCast(Value());
131 }
132 
133 //=======================================================================
134 //function : StartRequest
135 //purpose  :
136 //=======================================================================
137 
Handle(StepAP203_StartRequest)138 Handle(StepAP203_StartRequest) StepAP203_ApprovedItem::StartRequest () const
139 {
140   return Handle(StepAP203_StartRequest)::DownCast(Value());
141 }
142 
143 //=======================================================================
144 //function : StartWork
145 //purpose  :
146 //=======================================================================
147 
Handle(StepAP203_StartWork)148 Handle(StepAP203_StartWork) StepAP203_ApprovedItem::StartWork () const
149 {
150   return Handle(StepAP203_StartWork)::DownCast(Value());
151 }
152 
153 //=======================================================================
154 //function : Certification
155 //purpose  :
156 //=======================================================================
157 
Handle(StepBasic_Certification)158 Handle(StepBasic_Certification) StepAP203_ApprovedItem::Certification () const
159 {
160   return Handle(StepBasic_Certification)::DownCast(Value());
161 }
162 
163 //=======================================================================
164 //function : Contract
165 //purpose  :
166 //=======================================================================
167 
Handle(StepBasic_Contract)168 Handle(StepBasic_Contract) StepAP203_ApprovedItem::Contract () const
169 {
170   return Handle(StepBasic_Contract)::DownCast(Value());
171 }
172