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
6 // This file is part of Open CASCADE Technology software library.
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.
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
17 // Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.0
19 #include <Standard_Transient.hxx>
20 #include <StepAP203_Change.hxx>
21 #include <StepAP203_ChangeRequest.hxx>
22 #include <StepAP203_PersonOrganizationItem.hxx>
23 #include <StepAP203_StartRequest.hxx>
24 #include <StepAP203_StartWork.hxx>
25 #include <StepBasic_Contract.hxx>
26 #include <StepBasic_Product.hxx>
27 #include <StepBasic_ProductDefinition.hxx>
28 #include <StepBasic_ProductDefinitionFormation.hxx>
29 #include <StepBasic_SecurityClassification.hxx>
30 #include <StepRepr_ConfigurationItem.hxx>
32 //=======================================================================
33 //function : StepAP203_PersonOrganizationItem
35 //=======================================================================
36 StepAP203_PersonOrganizationItem::StepAP203_PersonOrganizationItem ()
40 //=======================================================================
43 //=======================================================================
45 Standard_Integer StepAP203_PersonOrganizationItem::CaseNum (const Handle(Standard_Transient)& ent) const
47 if (ent.IsNull()) return 0;
48 if (ent->IsKind(STANDARD_TYPE(StepAP203_Change))) return 1;
49 if (ent->IsKind(STANDARD_TYPE(StepAP203_StartWork))) return 2;
50 if (ent->IsKind(STANDARD_TYPE(StepAP203_ChangeRequest))) return 3;
51 if (ent->IsKind(STANDARD_TYPE(StepAP203_StartRequest))) return 4;
52 if (ent->IsKind(STANDARD_TYPE(StepRepr_ConfigurationItem))) return 5;
53 if (ent->IsKind(STANDARD_TYPE(StepBasic_Product))) return 6;
54 if (ent->IsKind(STANDARD_TYPE(StepBasic_ProductDefinitionFormation))) return 7;
55 if (ent->IsKind(STANDARD_TYPE(StepBasic_ProductDefinition))) return 8;
56 if (ent->IsKind(STANDARD_TYPE(StepBasic_Contract))) return 9;
57 if (ent->IsKind(STANDARD_TYPE(StepBasic_SecurityClassification))) return 10;
61 //=======================================================================
64 //=======================================================================
66 Handle(StepAP203_Change) StepAP203_PersonOrganizationItem::Change () const
68 return Handle(StepAP203_Change)::DownCast(Value());
71 //=======================================================================
72 //function : StartWork
74 //=======================================================================
76 Handle(StepAP203_StartWork) StepAP203_PersonOrganizationItem::StartWork () const
78 return Handle(StepAP203_StartWork)::DownCast(Value());
81 //=======================================================================
82 //function : ChangeRequest
84 //=======================================================================
86 Handle(StepAP203_ChangeRequest) StepAP203_PersonOrganizationItem::ChangeRequest () const
88 return Handle(StepAP203_ChangeRequest)::DownCast(Value());
91 //=======================================================================
92 //function : StartRequest
94 //=======================================================================
96 Handle(StepAP203_StartRequest) StepAP203_PersonOrganizationItem::StartRequest () const
98 return Handle(StepAP203_StartRequest)::DownCast(Value());
101 //=======================================================================
102 //function : ConfigurationItem
104 //=======================================================================
106 Handle(StepRepr_ConfigurationItem) StepAP203_PersonOrganizationItem::ConfigurationItem () const
108 return Handle(StepRepr_ConfigurationItem)::DownCast(Value());
111 //=======================================================================
114 //=======================================================================
116 Handle(StepBasic_Product) StepAP203_PersonOrganizationItem::Product () const
118 return Handle(StepBasic_Product)::DownCast(Value());
121 //=======================================================================
122 //function : ProductDefinitionFormation
124 //=======================================================================
126 Handle(StepBasic_ProductDefinitionFormation) StepAP203_PersonOrganizationItem::ProductDefinitionFormation () const
128 return Handle(StepBasic_ProductDefinitionFormation)::DownCast(Value());
131 //=======================================================================
132 //function : ProductDefinition
134 //=======================================================================
136 Handle(StepBasic_ProductDefinition) StepAP203_PersonOrganizationItem::ProductDefinition () const
138 return Handle(StepBasic_ProductDefinition)::DownCast(Value());
141 //=======================================================================
142 //function : Contract
144 //=======================================================================
146 Handle(StepBasic_Contract) StepAP203_PersonOrganizationItem::Contract () const
148 return Handle(StepBasic_Contract)::DownCast(Value());
151 //=======================================================================
152 //function : SecurityClassification
154 //=======================================================================
156 Handle(StepBasic_SecurityClassification) StepAP203_PersonOrganizationItem::SecurityClassification () const
158 return Handle(StepBasic_SecurityClassification)::DownCast(Value());