0027336: Update STEP entities, according to AP242
[occt.git] / src / StepAP214 / StepAP214_DocumentReferenceItem.cxx
1 // Copyright (c) 1999-2014 OPEN CASCADE SAS
2 //
3 // This file is part of Open CASCADE Technology software library.
4 //
5 // This library is free software; you can redistribute it and/or modify it under
6 // the terms of the GNU Lesser General Public License version 2.1 as published
7 // by the Free Software Foundation, with special exception defined in the file
8 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
9 // distribution for complete text of the license and disclaimer of any warranty.
10 //
11 // Alternatively, this file may be used under the terms of Open CASCADE
12 // commercial license or contractual agreement.
13
14
15 #include <Interface_Macros.hxx>
16 #include <Standard_Transient.hxx>
17 #include <StepAP214_AppliedExternalIdentificationAssignment.hxx>
18 #include <StepAP214_DocumentReferenceItem.hxx>
19 #include <StepBasic_Approval.hxx>
20 #include <StepBasic_CharacterizedObject.hxx>
21 #include <StepBasic_ExternallyDefinedItem.hxx>
22 #include <StepBasic_Group.hxx>
23 #include <StepBasic_GroupRelationship.hxx>
24 #include <StepBasic_ProductCategory.hxx>
25 #include <StepBasic_ProductDefinition.hxx>
26 #include <StepBasic_ProductDefinitionContext.hxx>
27 #include <StepBasic_ProductDefinitionRelationship.hxx>
28 #include <StepRepr_AssemblyComponentUsage.hxx>
29 #include <StepRepr_DescriptiveRepresentationItem.hxx>
30 #include <StepRepr_MaterialDesignation.hxx>
31 #include <StepRepr_MeasureRepresentationItem.hxx>
32 #include <StepRepr_PropertyDefinition.hxx>
33 #include <StepRepr_Representation.hxx>
34 #include <StepRepr_RepresentationItem.hxx>
35 #include <StepRepr_ShapeAspect.hxx>
36 #include <StepRepr_ShapeAspectRelationship.hxx>
37 #include <StepShape_DimensionalSize.hxx>
38
39 StepAP214_DocumentReferenceItem::StepAP214_DocumentReferenceItem () {  }
40
41 Standard_Integer StepAP214_DocumentReferenceItem::CaseNum(const Handle(Standard_Transient)& ent) const
42 {
43   if (ent.IsNull()) return 0;
44   if (ent->IsKind(STANDARD_TYPE(StepBasic_Approval))) return 1;
45   if (ent->IsKind(STANDARD_TYPE(StepRepr_DescriptiveRepresentationItem))) return 2;
46   if (ent->IsKind(STANDARD_TYPE(StepRepr_MaterialDesignation))) return 3;
47   if (ent->IsKind(STANDARD_TYPE(StepBasic_ProductDefinition))) return 4;
48   if (ent->IsKind(STANDARD_TYPE(StepBasic_ProductDefinitionRelationship))) return 5;
49   if (ent->IsKind(STANDARD_TYPE(StepRepr_PropertyDefinition))) return 6;
50   if (ent->IsKind(STANDARD_TYPE(StepRepr_Representation))) return 7;
51   if (ent->IsKind(STANDARD_TYPE(StepRepr_ShapeAspect))) return 8;
52   if (ent->IsKind(STANDARD_TYPE(StepRepr_ShapeAspectRelationship))) return 9;
53   if (ent->IsKind(STANDARD_TYPE(StepAP214_AppliedExternalIdentificationAssignment))) return 10;
54   if (ent->IsKind(STANDARD_TYPE(StepRepr_AssemblyComponentUsage))) return 11;
55   if (ent->IsKind(STANDARD_TYPE(StepBasic_CharacterizedObject))) return 12;
56   if (ent->IsKind(STANDARD_TYPE(StepShape_DimensionalSize))) return 13;
57   if (ent->IsKind(STANDARD_TYPE(StepBasic_ExternallyDefinedItem))) return 14;
58   if (ent->IsKind(STANDARD_TYPE(StepBasic_Group))) return 15;
59   if (ent->IsKind(STANDARD_TYPE(StepBasic_GroupRelationship))) return 16;
60   if (ent->IsKind(STANDARD_TYPE(StepRepr_MeasureRepresentationItem))) return 17;
61   if (ent->IsKind(STANDARD_TYPE(StepBasic_ProductCategory))) return 18;
62   if (ent->IsKind(STANDARD_TYPE(StepBasic_ProductDefinitionContext))) return 19;
63   if (ent->IsKind(STANDARD_TYPE(StepRepr_RepresentationItem))) return 20;
64   return 0;
65 }
66
67
68 Handle(StepBasic_Approval) StepAP214_DocumentReferenceItem::Approval() const
69 {  return GetCasted(StepBasic_Approval,Value());  }
70
71 Handle(StepRepr_DescriptiveRepresentationItem)  StepAP214_DocumentReferenceItem::DescriptiveRepresentationItem() const
72 {  return GetCasted(StepRepr_DescriptiveRepresentationItem,Value());  }
73
74 Handle(StepRepr_MaterialDesignation) StepAP214_DocumentReferenceItem::MaterialDesignation() const
75 {  return GetCasted(StepRepr_MaterialDesignation,Value());  }
76
77
78 Handle(StepBasic_ProductDefinition) StepAP214_DocumentReferenceItem::ProductDefinition () const
79 {  return GetCasted(StepBasic_ProductDefinition,Value());  }
80
81
82 Handle(StepBasic_ProductDefinitionRelationship) StepAP214_DocumentReferenceItem::ProductDefinitionRelationship() const
83 {  return GetCasted(StepBasic_ProductDefinitionRelationship,Value());  }
84
85 Handle(StepRepr_PropertyDefinition) StepAP214_DocumentReferenceItem::PropertyDefinition() const
86 {  return GetCasted(StepRepr_PropertyDefinition,Value());  }
87
88 Handle(StepRepr_Representation)  StepAP214_DocumentReferenceItem::Representation() const
89 {  return GetCasted(StepRepr_Representation,Value());  }
90
91 Handle(StepRepr_ShapeAspect)  StepAP214_DocumentReferenceItem::ShapeAspect() const
92 {  return GetCasted(StepRepr_ShapeAspect,Value());  }
93
94 Handle(StepRepr_ShapeAspectRelationship)  StepAP214_DocumentReferenceItem::ShapeAspectRelationship() const
95 {  return GetCasted(StepRepr_ShapeAspectRelationship,Value());  }
96
97 Handle(StepAP214_AppliedExternalIdentificationAssignment)  StepAP214_DocumentReferenceItem::AppliedExternalIdentificationAssignment() const
98 {  return GetCasted(StepAP214_AppliedExternalIdentificationAssignment,Value());  }
99
100 Handle(StepRepr_AssemblyComponentUsage)  StepAP214_DocumentReferenceItem::AssemblyComponentUsage() const
101 {  return GetCasted(StepRepr_AssemblyComponentUsage,Value());  }
102
103 Handle(StepBasic_CharacterizedObject)  StepAP214_DocumentReferenceItem::CharacterizedObject() const
104 {  return GetCasted(StepBasic_CharacterizedObject,Value());  }
105
106 Handle(StepShape_DimensionalSize)  StepAP214_DocumentReferenceItem::DimensionalSize() const
107 {  return GetCasted(StepShape_DimensionalSize,Value());  }
108
109 Handle(StepBasic_ExternallyDefinedItem)  StepAP214_DocumentReferenceItem::ExternallyDefinedItem() const
110 {  return GetCasted(StepBasic_ExternallyDefinedItem,Value());  }
111
112 Handle(StepBasic_Group)  StepAP214_DocumentReferenceItem::Group() const
113 {  return GetCasted(StepBasic_Group,Value());  }
114
115 Handle(StepBasic_GroupRelationship)  StepAP214_DocumentReferenceItem::GroupRelationship() const
116 {  return GetCasted(StepBasic_GroupRelationship,Value());  }
117
118 Handle(StepRepr_MeasureRepresentationItem)  StepAP214_DocumentReferenceItem::MeasureRepresentationItem() const
119 {  return GetCasted(StepRepr_MeasureRepresentationItem,Value());  }
120
121 Handle(StepBasic_ProductCategory)  StepAP214_DocumentReferenceItem::ProductCategory() const
122 {  return GetCasted(StepBasic_ProductCategory,Value());  }
123
124 Handle(StepBasic_ProductDefinitionContext)  StepAP214_DocumentReferenceItem::ProductDefinitionContext() const
125 {  return GetCasted(StepBasic_ProductDefinitionContext,Value());  }
126
127 Handle(StepRepr_RepresentationItem)  StepAP214_DocumentReferenceItem::RepresentationItem() const
128 {  return GetCasted(StepRepr_RepresentationItem,Value());  }