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
5 //
6 // This file is part of Open CASCADE Technology software library.
7 //
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.
13 //
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
16 
17 // Generator:	ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.0
18 
19 #include <Standard_Transient.hxx>
20 #include <StepAP203_Change.hxx>
21 #include <StepAP203_ChangeRequest.hxx>
22 #include <StepAP203_DateTimeItem.hxx>
23 #include <StepAP203_StartRequest.hxx>
24 #include <StepAP203_StartWork.hxx>
25 #include <StepBasic_ApprovalPersonOrganization.hxx>
26 #include <StepBasic_Certification.hxx>
27 #include <StepBasic_Contract.hxx>
28 #include <StepBasic_ProductDefinition.hxx>
29 #include <StepBasic_SecurityClassification.hxx>
30 
31 //=======================================================================
32 //function : StepAP203_DateTimeItem
33 //purpose  :
34 //=======================================================================
StepAP203_DateTimeItem()35 StepAP203_DateTimeItem::StepAP203_DateTimeItem ()
36 {
37 }
38 
39 //=======================================================================
40 //function : CaseNum
41 //purpose  :
42 //=======================================================================
43 
CaseNum(const Handle (Standard_Transient)& ent) const44 Standard_Integer StepAP203_DateTimeItem::CaseNum (const Handle(Standard_Transient)& ent) const
45 {
46   if (ent.IsNull()) return 0;
47   if (ent->IsKind(STANDARD_TYPE(StepBasic_ProductDefinition))) return 1;
48   if (ent->IsKind(STANDARD_TYPE(StepAP203_ChangeRequest))) return 2;
49   if (ent->IsKind(STANDARD_TYPE(StepAP203_StartRequest))) return 3;
50   if (ent->IsKind(STANDARD_TYPE(StepAP203_Change))) return 4;
51   if (ent->IsKind(STANDARD_TYPE(StepAP203_StartWork))) return 5;
52   if (ent->IsKind(STANDARD_TYPE(StepBasic_ApprovalPersonOrganization))) return 6;
53   if (ent->IsKind(STANDARD_TYPE(StepBasic_Contract))) return 7;
54   if (ent->IsKind(STANDARD_TYPE(StepBasic_SecurityClassification))) return 8;
55   if (ent->IsKind(STANDARD_TYPE(StepBasic_Certification))) return 9;
56   return 0;
57 }
58 
59 //=======================================================================
60 //function : ProductDefinition
61 //purpose  :
62 //=======================================================================
63 
Handle(StepBasic_ProductDefinition)64 Handle(StepBasic_ProductDefinition) StepAP203_DateTimeItem::ProductDefinition () const
65 {
66   return Handle(StepBasic_ProductDefinition)::DownCast(Value());
67 }
68 
69 //=======================================================================
70 //function : ChangeRequest
71 //purpose  :
72 //=======================================================================
73 
Handle(StepAP203_ChangeRequest)74 Handle(StepAP203_ChangeRequest) StepAP203_DateTimeItem::ChangeRequest () const
75 {
76   return Handle(StepAP203_ChangeRequest)::DownCast(Value());
77 }
78 
79 //=======================================================================
80 //function : StartRequest
81 //purpose  :
82 //=======================================================================
83 
Handle(StepAP203_StartRequest)84 Handle(StepAP203_StartRequest) StepAP203_DateTimeItem::StartRequest () const
85 {
86   return Handle(StepAP203_StartRequest)::DownCast(Value());
87 }
88 
89 //=======================================================================
90 //function : Change
91 //purpose  :
92 //=======================================================================
93 
Handle(StepAP203_Change)94 Handle(StepAP203_Change) StepAP203_DateTimeItem::Change () const
95 {
96   return Handle(StepAP203_Change)::DownCast(Value());
97 }
98 
99 //=======================================================================
100 //function : StartWork
101 //purpose  :
102 //=======================================================================
103 
Handle(StepAP203_StartWork)104 Handle(StepAP203_StartWork) StepAP203_DateTimeItem::StartWork () const
105 {
106   return Handle(StepAP203_StartWork)::DownCast(Value());
107 }
108 
109 //=======================================================================
110 //function : ApprovalPersonOrganization
111 //purpose  :
112 //=======================================================================
113 
Handle(StepBasic_ApprovalPersonOrganization)114 Handle(StepBasic_ApprovalPersonOrganization) StepAP203_DateTimeItem::ApprovalPersonOrganization () const
115 {
116   return Handle(StepBasic_ApprovalPersonOrganization)::DownCast(Value());
117 }
118 
119 //=======================================================================
120 //function : Contract
121 //purpose  :
122 //=======================================================================
123 
Handle(StepBasic_Contract)124 Handle(StepBasic_Contract) StepAP203_DateTimeItem::Contract () const
125 {
126   return Handle(StepBasic_Contract)::DownCast(Value());
127 }
128 
129 //=======================================================================
130 //function : SecurityClassification
131 //purpose  :
132 //=======================================================================
133 
Handle(StepBasic_SecurityClassification)134 Handle(StepBasic_SecurityClassification) StepAP203_DateTimeItem::SecurityClassification () const
135 {
136   return Handle(StepBasic_SecurityClassification)::DownCast(Value());
137 }
138 
139 //=======================================================================
140 //function : Certification
141 //purpose  :
142 //=======================================================================
143 
Handle(StepBasic_Certification)144 Handle(StepBasic_Certification) StepAP203_DateTimeItem::Certification () const
145 {
146   return Handle(StepBasic_Certification)::DownCast(Value());
147 }
148