b311480e |
1 | // Created on: 1999-11-26 |
2 | // Created by: Andrey BETENEV |
3 | // Copyright (c) 1999 Matra Datavision |
4 | // Copyright (c) 1999-2012 OPEN CASCADE SAS |
5 | // |
6 | // The content of this file is subject to the Open CASCADE Technology Public |
7 | // License Version 6.5 (the "License"). You may not use the content of this file |
8 | // except in compliance with the License. Please obtain a copy of the License |
9 | // at http://www.opencascade.org and read it completely before using this file. |
10 | // |
11 | // The Initial Developer of the Original Code is Open CASCADE S.A.S., having its |
12 | // main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France. |
13 | // |
14 | // The Original Code and all software distributed under the License is |
15 | // distributed on an "AS IS" basis, without warranty of any kind, and the |
16 | // Initial Developer hereby disclaims all such warranties, including without |
17 | // limitation, any warranties of merchantability, fitness for a particular |
18 | // purpose or non-infringement. Please see the License for the specific terms |
19 | // and conditions governing the rights and limitations under the License. |
20 | |
7fd59977 |
21 | // Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.0 |
7fd59977 |
22 | |
23 | #include <StepAP203_ApprovedItem.ixx> |
24 | |
25 | //======================================================================= |
26 | //function : StepAP203_ApprovedItem |
27 | //purpose : |
28 | //======================================================================= |
29 | |
30 | StepAP203_ApprovedItem::StepAP203_ApprovedItem () |
31 | { |
32 | } |
33 | |
34 | //======================================================================= |
35 | //function : CaseNum |
36 | //purpose : |
37 | //======================================================================= |
38 | |
39 | Standard_Integer StepAP203_ApprovedItem::CaseNum (const Handle(Standard_Transient)& ent) const |
40 | { |
41 | if (ent.IsNull()) return 0; |
42 | if (ent->IsKind(STANDARD_TYPE(StepBasic_ProductDefinitionFormation))) return 1; |
43 | if (ent->IsKind(STANDARD_TYPE(StepBasic_ProductDefinition))) return 2; |
44 | if (ent->IsKind(STANDARD_TYPE(StepRepr_ConfigurationEffectivity))) return 3; |
45 | if (ent->IsKind(STANDARD_TYPE(StepRepr_ConfigurationItem))) return 4; |
46 | if (ent->IsKind(STANDARD_TYPE(StepBasic_SecurityClassification))) return 5; |
47 | if (ent->IsKind(STANDARD_TYPE(StepAP203_ChangeRequest))) return 6; |
48 | if (ent->IsKind(STANDARD_TYPE(StepAP203_Change))) return 7; |
49 | if (ent->IsKind(STANDARD_TYPE(StepAP203_StartRequest))) return 8; |
50 | if (ent->IsKind(STANDARD_TYPE(StepAP203_StartWork))) return 9; |
51 | if (ent->IsKind(STANDARD_TYPE(StepBasic_Certification))) return 10; |
52 | if (ent->IsKind(STANDARD_TYPE(StepBasic_Contract))) return 11; |
53 | return 0; |
54 | } |
55 | |
56 | //======================================================================= |
57 | //function : ProductDefinitionFormation |
58 | //purpose : |
59 | //======================================================================= |
60 | |
61 | Handle(StepBasic_ProductDefinitionFormation) StepAP203_ApprovedItem::ProductDefinitionFormation () const |
62 | { |
63 | return Handle(StepBasic_ProductDefinitionFormation)::DownCast(Value()); |
64 | } |
65 | |
66 | //======================================================================= |
67 | //function : ProductDefinition |
68 | //purpose : |
69 | //======================================================================= |
70 | |
71 | Handle(StepBasic_ProductDefinition) StepAP203_ApprovedItem::ProductDefinition () const |
72 | { |
73 | return Handle(StepBasic_ProductDefinition)::DownCast(Value()); |
74 | } |
75 | |
76 | //======================================================================= |
77 | //function : ConfigurationEffectivity |
78 | //purpose : |
79 | //======================================================================= |
80 | |
81 | Handle(StepRepr_ConfigurationEffectivity) StepAP203_ApprovedItem::ConfigurationEffectivity () const |
82 | { |
83 | return Handle(StepRepr_ConfigurationEffectivity)::DownCast(Value()); |
84 | } |
85 | |
86 | //======================================================================= |
87 | //function : ConfigurationItem |
88 | //purpose : |
89 | //======================================================================= |
90 | |
91 | Handle(StepRepr_ConfigurationItem) StepAP203_ApprovedItem::ConfigurationItem () const |
92 | { |
93 | return Handle(StepRepr_ConfigurationItem)::DownCast(Value()); |
94 | } |
95 | |
96 | //======================================================================= |
97 | //function : SecurityClassification |
98 | //purpose : |
99 | //======================================================================= |
100 | |
101 | Handle(StepBasic_SecurityClassification) StepAP203_ApprovedItem::SecurityClassification () const |
102 | { |
103 | return Handle(StepBasic_SecurityClassification)::DownCast(Value()); |
104 | } |
105 | |
106 | //======================================================================= |
107 | //function : ChangeRequest |
108 | //purpose : |
109 | //======================================================================= |
110 | |
111 | Handle(StepAP203_ChangeRequest) StepAP203_ApprovedItem::ChangeRequest () const |
112 | { |
113 | return Handle(StepAP203_ChangeRequest)::DownCast(Value()); |
114 | } |
115 | |
116 | //======================================================================= |
117 | //function : Change |
118 | //purpose : |
119 | //======================================================================= |
120 | |
121 | Handle(StepAP203_Change) StepAP203_ApprovedItem::Change () const |
122 | { |
123 | return Handle(StepAP203_Change)::DownCast(Value()); |
124 | } |
125 | |
126 | //======================================================================= |
127 | //function : StartRequest |
128 | //purpose : |
129 | //======================================================================= |
130 | |
131 | Handle(StepAP203_StartRequest) StepAP203_ApprovedItem::StartRequest () const |
132 | { |
133 | return Handle(StepAP203_StartRequest)::DownCast(Value()); |
134 | } |
135 | |
136 | //======================================================================= |
137 | //function : StartWork |
138 | //purpose : |
139 | //======================================================================= |
140 | |
141 | Handle(StepAP203_StartWork) StepAP203_ApprovedItem::StartWork () const |
142 | { |
143 | return Handle(StepAP203_StartWork)::DownCast(Value()); |
144 | } |
145 | |
146 | //======================================================================= |
147 | //function : Certification |
148 | //purpose : |
149 | //======================================================================= |
150 | |
151 | Handle(StepBasic_Certification) StepAP203_ApprovedItem::Certification () const |
152 | { |
153 | return Handle(StepBasic_Certification)::DownCast(Value()); |
154 | } |
155 | |
156 | //======================================================================= |
157 | //function : Contract |
158 | //purpose : |
159 | //======================================================================= |
160 | |
161 | Handle(StepBasic_Contract) StepAP203_ApprovedItem::Contract () const |
162 | { |
163 | return Handle(StepBasic_Contract)::DownCast(Value()); |
164 | } |