1 // Copyright (c) 1999-2014 OPEN CASCADE SAS
3 // This file is part of Open CASCADE Technology software library.
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.
11 // Alternatively, this file may be used under the terms of Open CASCADE
12 // commercial license or contractual agreement.
14 #include <StepAP214_DocumentReferenceItem.ixx>
15 #include <Interface_Macros.hxx>
16 #include <StepBasic_Approval.hxx>
17 #include <StepRepr_DescriptiveRepresentationItem.hxx>
18 #include <StepRepr_MaterialDesignation.hxx>
19 #include <StepBasic_ProductDefinition.hxx>
20 #include <StepBasic_ProductDefinitionRelationship.hxx>
21 #include <StepRepr_PropertyDefinition.hxx>
22 #include <StepRepr_Representation.hxx>
23 #include <StepRepr_ShapeAspect.hxx>
24 #include <StepRepr_ShapeAspectRelationship.hxx>
26 StepAP214_DocumentReferenceItem::StepAP214_DocumentReferenceItem () { }
28 Standard_Integer StepAP214_DocumentReferenceItem::CaseNum(const Handle(Standard_Transient)& ent) const
30 if (ent.IsNull()) return 0;
31 if (ent->IsKind(STANDARD_TYPE(StepBasic_Approval))) return 1;
32 if (ent->IsKind(STANDARD_TYPE(StepRepr_DescriptiveRepresentationItem))) return 2;
33 if (ent->IsKind(STANDARD_TYPE(StepRepr_MaterialDesignation))) return 3;
34 if (ent->IsKind(STANDARD_TYPE(StepBasic_ProductDefinition))) return 4;
35 if (ent->IsKind(STANDARD_TYPE(StepBasic_ProductDefinitionRelationship))) return 5;
36 if (ent->IsKind(STANDARD_TYPE(StepRepr_PropertyDefinition))) return 6;
37 if (ent->IsKind(STANDARD_TYPE(StepRepr_Representation))) return 7;
38 if (ent->IsKind(STANDARD_TYPE(StepRepr_ShapeAspect))) return 8;
39 if (ent->IsKind(STANDARD_TYPE(StepRepr_ShapeAspectRelationship))) return 9;
44 Handle(StepBasic_Approval) StepAP214_DocumentReferenceItem::Approval() const
45 { return GetCasted(StepBasic_Approval,Value()); }
47 Handle(StepRepr_DescriptiveRepresentationItem) StepAP214_DocumentReferenceItem::DescriptiveRepresentationItem() const
48 { return GetCasted(StepRepr_DescriptiveRepresentationItem,Value()); }
50 Handle(StepRepr_MaterialDesignation) StepAP214_DocumentReferenceItem::MaterialDesignation() const
51 { return GetCasted(StepRepr_MaterialDesignation,Value()); }
54 Handle(StepBasic_ProductDefinition) StepAP214_DocumentReferenceItem::ProductDefinition () const
55 { return GetCasted(StepBasic_ProductDefinition,Value()); }
58 Handle(StepBasic_ProductDefinitionRelationship) StepAP214_DocumentReferenceItem::ProductDefinitionRelationship() const
59 { return GetCasted(StepBasic_ProductDefinitionRelationship,Value()); }
61 Handle(StepRepr_PropertyDefinition) StepAP214_DocumentReferenceItem::PropertyDefinition() const
62 { return GetCasted(StepRepr_PropertyDefinition,Value()); }
64 Handle(StepRepr_Representation) StepAP214_DocumentReferenceItem::Representation() const
65 { return GetCasted(StepRepr_Representation,Value()); }
67 Handle(StepRepr_ShapeAspect) StepAP214_DocumentReferenceItem::ShapeAspect() const
68 { return GetCasted(StepRepr_ShapeAspect,Value()); }
70 Handle(StepRepr_ShapeAspectRelationship) StepAP214_DocumentReferenceItem::ShapeAspectRelationship() const
71 { return GetCasted(StepRepr_ShapeAspectRelationship,Value()); }