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 | |
42cf5bc1 |
19 | #include <Standard_Transient.hxx> |
20 | #include <StepAP203_ApprovedItem.hxx> |
ec357c5c |
21 | #include <StepAP203_Change.hxx> |
42cf5bc1 |
22 | #include <StepAP203_ChangeRequest.hxx> |
ec357c5c |
23 | #include <StepAP203_StartRequest.hxx> |
24 | #include <StepAP203_StartWork.hxx> |
25 | #include <StepBasic_Certification.hxx> |
26 | #include <StepBasic_Contract.hxx> |
42cf5bc1 |
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> |
7fd59977 |
32 | |
33 | //======================================================================= |
34 | //function : StepAP203_ApprovedItem |
35 | //purpose : |
36 | //======================================================================= |
7fd59977 |
37 | StepAP203_ApprovedItem::StepAP203_ApprovedItem () |
38 | { |
39 | } |
40 | |
41 | //======================================================================= |
42 | //function : CaseNum |
43 | //purpose : |
44 | //======================================================================= |
45 | |
46 | 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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
168 | Handle(StepBasic_Contract) StepAP203_ApprovedItem::Contract () const |
169 | { |
170 | return Handle(StepBasic_Contract)::DownCast(Value()); |
171 | } |