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_DateTimeItem.ixx>
20 #include <StepBasic_ProductDefinition.hxx>
21 #include <StepAP203_ChangeRequest.hxx>
22 #include <StepAP203_StartRequest.hxx>
23 #include <StepAP203_Change.hxx>
24 #include <StepAP203_StartWork.hxx>
25 #include <StepBasic_ApprovalPersonOrganization.hxx>
26 #include <StepBasic_Contract.hxx>
27 #include <StepBasic_SecurityClassification.hxx>
28 #include <StepBasic_Certification.hxx>
30 //=======================================================================
31 //function : StepAP203_DateTimeItem
33 //=======================================================================
35 StepAP203_DateTimeItem::StepAP203_DateTimeItem ()
39 //=======================================================================
42 //=======================================================================
44 Standard_Integer StepAP203_DateTimeItem::CaseNum (const Handle(Standard_Transient)& ent) const
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;
59 //=======================================================================
60 //function : ProductDefinition
62 //=======================================================================
64 Handle(StepBasic_ProductDefinition) StepAP203_DateTimeItem::ProductDefinition () const
66 return Handle(StepBasic_ProductDefinition)::DownCast(Value());
69 //=======================================================================
70 //function : ChangeRequest
72 //=======================================================================
74 Handle(StepAP203_ChangeRequest) StepAP203_DateTimeItem::ChangeRequest () const
76 return Handle(StepAP203_ChangeRequest)::DownCast(Value());
79 //=======================================================================
80 //function : StartRequest
82 //=======================================================================
84 Handle(StepAP203_StartRequest) StepAP203_DateTimeItem::StartRequest () const
86 return Handle(StepAP203_StartRequest)::DownCast(Value());
89 //=======================================================================
92 //=======================================================================
94 Handle(StepAP203_Change) StepAP203_DateTimeItem::Change () const
96 return Handle(StepAP203_Change)::DownCast(Value());
99 //=======================================================================
100 //function : StartWork
102 //=======================================================================
104 Handle(StepAP203_StartWork) StepAP203_DateTimeItem::StartWork () const
106 return Handle(StepAP203_StartWork)::DownCast(Value());
109 //=======================================================================
110 //function : ApprovalPersonOrganization
112 //=======================================================================
114 Handle(StepBasic_ApprovalPersonOrganization) StepAP203_DateTimeItem::ApprovalPersonOrganization () const
116 return Handle(StepBasic_ApprovalPersonOrganization)::DownCast(Value());
119 //=======================================================================
120 //function : Contract
122 //=======================================================================
124 Handle(StepBasic_Contract) StepAP203_DateTimeItem::Contract () const
126 return Handle(StepBasic_Contract)::DownCast(Value());
129 //=======================================================================
130 //function : SecurityClassification
132 //=======================================================================
134 Handle(StepBasic_SecurityClassification) StepAP203_DateTimeItem::SecurityClassification () const
136 return Handle(StepBasic_SecurityClassification)::DownCast(Value());
139 //=======================================================================
140 //function : Certification
142 //=======================================================================
144 Handle(StepBasic_Certification) StepAP203_DateTimeItem::Certification () const
146 return Handle(StepBasic_Certification)::DownCast(Value());