0023024: Update headers of OCCT files
[occt.git] / src / StepAP203 / StepAP203_PersonOrganizationItem.cxx
CommitLineData
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_PersonOrganizationItem.ixx>
24
25//=======================================================================
26//function : StepAP203_PersonOrganizationItem
27//purpose :
28//=======================================================================
29
30StepAP203_PersonOrganizationItem::StepAP203_PersonOrganizationItem ()
31{
32}
33
34//=======================================================================
35//function : CaseNum
36//purpose :
37//=======================================================================
38
39Standard_Integer StepAP203_PersonOrganizationItem::CaseNum (const Handle(Standard_Transient)& ent) const
40{
41 if (ent.IsNull()) return 0;
42 if (ent->IsKind(STANDARD_TYPE(StepAP203_Change))) return 1;
43 if (ent->IsKind(STANDARD_TYPE(StepAP203_StartWork))) return 2;
44 if (ent->IsKind(STANDARD_TYPE(StepAP203_ChangeRequest))) return 3;
45 if (ent->IsKind(STANDARD_TYPE(StepAP203_StartRequest))) return 4;
46 if (ent->IsKind(STANDARD_TYPE(StepRepr_ConfigurationItem))) return 5;
47 if (ent->IsKind(STANDARD_TYPE(StepBasic_Product))) return 6;
48 if (ent->IsKind(STANDARD_TYPE(StepBasic_ProductDefinitionFormation))) return 7;
49 if (ent->IsKind(STANDARD_TYPE(StepBasic_ProductDefinition))) return 8;
50 if (ent->IsKind(STANDARD_TYPE(StepBasic_Contract))) return 9;
51 if (ent->IsKind(STANDARD_TYPE(StepBasic_SecurityClassification))) return 10;
52 return 0;
53}
54
55//=======================================================================
56//function : Change
57//purpose :
58//=======================================================================
59
60Handle(StepAP203_Change) StepAP203_PersonOrganizationItem::Change () const
61{
62 return Handle(StepAP203_Change)::DownCast(Value());
63}
64
65//=======================================================================
66//function : StartWork
67//purpose :
68//=======================================================================
69
70Handle(StepAP203_StartWork) StepAP203_PersonOrganizationItem::StartWork () const
71{
72 return Handle(StepAP203_StartWork)::DownCast(Value());
73}
74
75//=======================================================================
76//function : ChangeRequest
77//purpose :
78//=======================================================================
79
80Handle(StepAP203_ChangeRequest) StepAP203_PersonOrganizationItem::ChangeRequest () const
81{
82 return Handle(StepAP203_ChangeRequest)::DownCast(Value());
83}
84
85//=======================================================================
86//function : StartRequest
87//purpose :
88//=======================================================================
89
90Handle(StepAP203_StartRequest) StepAP203_PersonOrganizationItem::StartRequest () const
91{
92 return Handle(StepAP203_StartRequest)::DownCast(Value());
93}
94
95//=======================================================================
96//function : ConfigurationItem
97//purpose :
98//=======================================================================
99
100Handle(StepRepr_ConfigurationItem) StepAP203_PersonOrganizationItem::ConfigurationItem () const
101{
102 return Handle(StepRepr_ConfigurationItem)::DownCast(Value());
103}
104
105//=======================================================================
106//function : Product
107//purpose :
108//=======================================================================
109
110Handle(StepBasic_Product) StepAP203_PersonOrganizationItem::Product () const
111{
112 return Handle(StepBasic_Product)::DownCast(Value());
113}
114
115//=======================================================================
116//function : ProductDefinitionFormation
117//purpose :
118//=======================================================================
119
120Handle(StepBasic_ProductDefinitionFormation) StepAP203_PersonOrganizationItem::ProductDefinitionFormation () const
121{
122 return Handle(StepBasic_ProductDefinitionFormation)::DownCast(Value());
123}
124
125//=======================================================================
126//function : ProductDefinition
127//purpose :
128//=======================================================================
129
130Handle(StepBasic_ProductDefinition) StepAP203_PersonOrganizationItem::ProductDefinition () const
131{
132 return Handle(StepBasic_ProductDefinition)::DownCast(Value());
133}
134
135//=======================================================================
136//function : Contract
137//purpose :
138//=======================================================================
139
140Handle(StepBasic_Contract) StepAP203_PersonOrganizationItem::Contract () const
141{
142 return Handle(StepBasic_Contract)::DownCast(Value());
143}
144
145//=======================================================================
146//function : SecurityClassification
147//purpose :
148//=======================================================================
149
150Handle(StepBasic_SecurityClassification) StepAP203_PersonOrganizationItem::SecurityClassification () const
151{
152 return Handle(StepBasic_SecurityClassification)::DownCast(Value());
153}