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 <StepAP203_PersonOrganizationItem.ixx>
21 //=======================================================================
22 //function : StepAP203_PersonOrganizationItem
24 //=======================================================================
26 StepAP203_PersonOrganizationItem::StepAP203_PersonOrganizationItem ()
30 //=======================================================================
33 //=======================================================================
35 Standard_Integer StepAP203_PersonOrganizationItem::CaseNum (const Handle(Standard_Transient)& ent) const
37 if (ent.IsNull()) return 0;
38 if (ent->IsKind(STANDARD_TYPE(StepAP203_Change))) return 1;
39 if (ent->IsKind(STANDARD_TYPE(StepAP203_StartWork))) return 2;
40 if (ent->IsKind(STANDARD_TYPE(StepAP203_ChangeRequest))) return 3;
41 if (ent->IsKind(STANDARD_TYPE(StepAP203_StartRequest))) return 4;
42 if (ent->IsKind(STANDARD_TYPE(StepRepr_ConfigurationItem))) return 5;
43 if (ent->IsKind(STANDARD_TYPE(StepBasic_Product))) return 6;
44 if (ent->IsKind(STANDARD_TYPE(StepBasic_ProductDefinitionFormation))) return 7;
45 if (ent->IsKind(STANDARD_TYPE(StepBasic_ProductDefinition))) return 8;
46 if (ent->IsKind(STANDARD_TYPE(StepBasic_Contract))) return 9;
47 if (ent->IsKind(STANDARD_TYPE(StepBasic_SecurityClassification))) return 10;
51 //=======================================================================
54 //=======================================================================
56 Handle(StepAP203_Change) StepAP203_PersonOrganizationItem::Change () const
58 return Handle(StepAP203_Change)::DownCast(Value());
61 //=======================================================================
62 //function : StartWork
64 //=======================================================================
66 Handle(StepAP203_StartWork) StepAP203_PersonOrganizationItem::StartWork () const
68 return Handle(StepAP203_StartWork)::DownCast(Value());
71 //=======================================================================
72 //function : ChangeRequest
74 //=======================================================================
76 Handle(StepAP203_ChangeRequest) StepAP203_PersonOrganizationItem::ChangeRequest () const
78 return Handle(StepAP203_ChangeRequest)::DownCast(Value());
81 //=======================================================================
82 //function : StartRequest
84 //=======================================================================
86 Handle(StepAP203_StartRequest) StepAP203_PersonOrganizationItem::StartRequest () const
88 return Handle(StepAP203_StartRequest)::DownCast(Value());
91 //=======================================================================
92 //function : ConfigurationItem
94 //=======================================================================
96 Handle(StepRepr_ConfigurationItem) StepAP203_PersonOrganizationItem::ConfigurationItem () const
98 return Handle(StepRepr_ConfigurationItem)::DownCast(Value());
101 //=======================================================================
104 //=======================================================================
106 Handle(StepBasic_Product) StepAP203_PersonOrganizationItem::Product () const
108 return Handle(StepBasic_Product)::DownCast(Value());
111 //=======================================================================
112 //function : ProductDefinitionFormation
114 //=======================================================================
116 Handle(StepBasic_ProductDefinitionFormation) StepAP203_PersonOrganizationItem::ProductDefinitionFormation () const
118 return Handle(StepBasic_ProductDefinitionFormation)::DownCast(Value());
121 //=======================================================================
122 //function : ProductDefinition
124 //=======================================================================
126 Handle(StepBasic_ProductDefinition) StepAP203_PersonOrganizationItem::ProductDefinition () const
128 return Handle(StepBasic_ProductDefinition)::DownCast(Value());
131 //=======================================================================
132 //function : Contract
134 //=======================================================================
136 Handle(StepBasic_Contract) StepAP203_PersonOrganizationItem::Contract () const
138 return Handle(StepBasic_Contract)::DownCast(Value());
141 //=======================================================================
142 //function : SecurityClassification
144 //=======================================================================
146 Handle(StepBasic_SecurityClassification) StepAP203_PersonOrganizationItem::SecurityClassification () const
148 return Handle(StepBasic_SecurityClassification)::DownCast(Value());