0027047: STEP -- eliminate useless polymorhic methods Init()
[occt.git] / src / StepAP242 / StepAP242_ItemIdentifiedRepresentationUsageDefinition.cxx
CommitLineData
28a73c1f 1// Created on: 2015-07-10
2// Created by: Irina KRYLOVA
3// Copyright (c) 2015 OPEN CASCADE SAS
4//
5// This file is part of Open CASCADE Technology software library.
6//
7// This library is free software; you can redistribute it and/or modify it under
8// the terms of the GNU Lesser General Public License version 2.1 as published
9// by the Free Software Foundation, with special exception defined in the file
10// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
11// distribution for complete text of the license and disclaimer of any warranty.
12//
13// Alternatively, this file may be used under the terms of Open CASCADE
14// commercial license or contractual agreement.
15
16#include <StepAP242_ItemIdentifiedRepresentationUsageDefinition.hxx>
17#include <Interface_Macros.hxx>
18#include <StepAP214_AppliedApprovalAssignment.hxx>
19#include <StepAP214_AppliedDateAndTimeAssignment.hxx>
20#include <StepAP214_AppliedDateAssignment.hxx>
21#include <StepAP214_AppliedDocumentReference.hxx>
22#include <StepAP214_AppliedExternalIdentificationAssignment.hxx>
23#include <StepAP214_AppliedGroupAssignment.hxx>
24#include <StepAP214_AppliedOrganizationAssignment.hxx>
25#include <StepAP214_AppliedPersonAndOrganizationAssignment.hxx>
26#include <StepAP214_AppliedSecurityClassificationAssignment.hxx>
27#include <StepBasic_GeneralProperty.hxx>
28#include <StepBasic_ProductDefinitionRelationship.hxx>
29#include <StepDimTol_GeometricTolerance.hxx>
30#include <StepRepr_PropertyDefinition.hxx>
31#include <StepRepr_PropertyDefinitionRelationship.hxx>
32#include <StepRepr_ShapeAspect.hxx>
33#include <StepRepr_ShapeAspectRelationship.hxx>
34#include <StepShape_DimensionalSize.hxx>
35
36//=======================================================================
37//function : StepAP242_ItemIdentifiedRepresentationUsageDefinition
38//purpose :
39//=======================================================================
40
41StepAP242_ItemIdentifiedRepresentationUsageDefinition::
42 StepAP242_ItemIdentifiedRepresentationUsageDefinition () { }
43
44//=======================================================================
45//function : CaseNum
46//purpose :
47//=======================================================================
48
49Standard_Integer StepAP242_ItemIdentifiedRepresentationUsageDefinition::
50 CaseNum(const Handle(Standard_Transient)& ent) const
51{
52 if (ent.IsNull()) return 0;
53 if (ent->IsKind(STANDARD_TYPE(StepAP214_AppliedApprovalAssignment))) return 1;
54 if (ent->IsKind(STANDARD_TYPE(StepAP214_AppliedDateAndTimeAssignment))) return 2;
55 if (ent->IsKind(STANDARD_TYPE(StepAP214_AppliedDateAssignment))) return 3;
56 if (ent->IsKind(STANDARD_TYPE(StepAP214_AppliedDocumentReference))) return 4;
57 if (ent->IsKind(STANDARD_TYPE(StepAP214_AppliedExternalIdentificationAssignment))) return 5;
58 if (ent->IsKind(STANDARD_TYPE(StepAP214_AppliedGroupAssignment))) return 6;
59 if (ent->IsKind(STANDARD_TYPE(StepAP214_AppliedOrganizationAssignment))) return 7;
60 if (ent->IsKind(STANDARD_TYPE(StepAP214_AppliedPersonAndOrganizationAssignment))) return 8;
61 if (ent->IsKind(STANDARD_TYPE(StepAP214_AppliedSecurityClassificationAssignment))) return 9;
62 if (ent->IsKind(STANDARD_TYPE(StepShape_DimensionalSize))) return 10;
63 if (ent->IsKind(STANDARD_TYPE(StepBasic_GeneralProperty))) return 11;
64 if (ent->IsKind(STANDARD_TYPE(StepDimTol_GeometricTolerance))) return 12;
65 if (ent->IsKind(STANDARD_TYPE(StepBasic_ProductDefinitionRelationship))) return 13;
66 if (ent->IsKind(STANDARD_TYPE(StepRepr_PropertyDefinition))) return 14;
67 if (ent->IsKind(STANDARD_TYPE(StepRepr_PropertyDefinitionRelationship))) return 15;
68 if (ent->IsKind(STANDARD_TYPE(StepRepr_ShapeAspect))) return 16;
69 if (ent->IsKind(STANDARD_TYPE(StepRepr_ShapeAspectRelationship))) return 17;
70 return 0;
71}
72
73Handle(StepAP214_AppliedApprovalAssignment) StepAP242_ItemIdentifiedRepresentationUsageDefinition::AppliedApprovalAssignment() const
74{ return GetCasted(StepAP214_AppliedApprovalAssignment,Value()); }
75
76Handle(StepAP214_AppliedDateAndTimeAssignment) StepAP242_ItemIdentifiedRepresentationUsageDefinition::AppliedDateAndTimeAssignment() const
77{ return GetCasted(StepAP214_AppliedDateAndTimeAssignment,Value()); }
78
79Handle(StepAP214_AppliedDateAssignment) StepAP242_ItemIdentifiedRepresentationUsageDefinition::AppliedDateAssignment() const
80{ return GetCasted(StepAP214_AppliedDateAssignment,Value()); }
81
82Handle(StepAP214_AppliedDocumentReference) StepAP242_ItemIdentifiedRepresentationUsageDefinition::AppliedDocumentReference() const
83{ return GetCasted(StepAP214_AppliedDocumentReference,Value()); }
84
85Handle(StepAP214_AppliedExternalIdentificationAssignment) StepAP242_ItemIdentifiedRepresentationUsageDefinition::AppliedExternalIdentificationAssignment() const
86{ return GetCasted(StepAP214_AppliedExternalIdentificationAssignment,Value()); }
87
88Handle(StepAP214_AppliedGroupAssignment) StepAP242_ItemIdentifiedRepresentationUsageDefinition::AppliedGroupAssignment() const
89{ return GetCasted(StepAP214_AppliedGroupAssignment,Value()); }
90
91Handle(StepAP214_AppliedOrganizationAssignment) StepAP242_ItemIdentifiedRepresentationUsageDefinition::AppliedOrganizationAssignment() const
92{ return GetCasted(StepAP214_AppliedOrganizationAssignment,Value()); }
93
94Handle(StepAP214_AppliedPersonAndOrganizationAssignment) StepAP242_ItemIdentifiedRepresentationUsageDefinition::AppliedPersonAndOrganizationAssignment() const
95{ return GetCasted(StepAP214_AppliedPersonAndOrganizationAssignment,Value()); }
96
97Handle(StepAP214_AppliedSecurityClassificationAssignment) StepAP242_ItemIdentifiedRepresentationUsageDefinition::AppliedSecurityClassificationAssignment() const
98{ return GetCasted(StepAP214_AppliedSecurityClassificationAssignment,Value()); }
99
100Handle(StepShape_DimensionalSize) StepAP242_ItemIdentifiedRepresentationUsageDefinition::DimensionalSize() const
101{ return GetCasted(StepShape_DimensionalSize,Value()); }
102
103Handle(StepBasic_GeneralProperty) StepAP242_ItemIdentifiedRepresentationUsageDefinition::GeneralProperty() const
104{ return GetCasted(StepBasic_GeneralProperty,Value()); }
105
106Handle(StepDimTol_GeometricTolerance) StepAP242_ItemIdentifiedRepresentationUsageDefinition::GeometricTolerance() const
107{ return GetCasted(StepDimTol_GeometricTolerance,Value()); }
108
109Handle(StepBasic_ProductDefinitionRelationship) StepAP242_ItemIdentifiedRepresentationUsageDefinition::ProductDefinitionRelationship() const
110{ return GetCasted(StepBasic_ProductDefinitionRelationship,Value()); }
111
112Handle(StepRepr_PropertyDefinition) StepAP242_ItemIdentifiedRepresentationUsageDefinition::PropertyDefinition() const
113{ return GetCasted(StepRepr_PropertyDefinition,Value()); }
114
115Handle(StepRepr_PropertyDefinitionRelationship) StepAP242_ItemIdentifiedRepresentationUsageDefinition::PropertyDefinitionRelationship() const
116{ return GetCasted(StepRepr_PropertyDefinitionRelationship,Value()); }
117
118Handle(StepRepr_ShapeAspect) StepAP242_ItemIdentifiedRepresentationUsageDefinition::ShapeAspect() const
119{ return GetCasted(StepRepr_ShapeAspect,Value()); }
120
121Handle(StepRepr_ShapeAspectRelationship) StepAP242_ItemIdentifiedRepresentationUsageDefinition::ShapeAspectRelationship() const
122{ return GetCasted(StepRepr_ShapeAspectRelationship,Value()); }
123