0028832: MMgt_TShared can be replaced by Standard_Transient
[occt.git] / src / StepRepr / StepRepr_SpecifiedHigherUsageOccurrence.cxx
CommitLineData
b311480e 1// Created on: 2000-07-03
2// Created by: Andrey BETENEV
973c2be1 3// Copyright (c) 2000-2014 OPEN CASCADE SAS
b311480e 4//
973c2be1 5// This file is part of Open CASCADE Technology software library.
b311480e 6//
d5f74e42 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
973c2be1 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.
b311480e 12//
973c2be1 13// Alternatively, this file may be used under the terms of Open CASCADE
14// commercial license or contractual agreement.
b311480e 15
7fd59977 16// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.1
7fd59977 17
42cf5bc1 18#include <Standard_Type.hxx>
19#include <StepBasic_ProductDefinition.hxx>
20#include <StepRepr_AssemblyComponentUsage.hxx>
21#include <StepRepr_NextAssemblyUsageOccurrence.hxx>
22#include <StepRepr_SpecifiedHigherUsageOccurrence.hxx>
23#include <TCollection_HAsciiString.hxx>
7fd59977 24
92efcf78 25IMPLEMENT_STANDARD_RTTIEXT(StepRepr_SpecifiedHigherUsageOccurrence,StepRepr_AssemblyComponentUsage)
26
7fd59977 27//=======================================================================
28//function : StepRepr_SpecifiedHigherUsageOccurrence
29//purpose :
30//=======================================================================
7fd59977 31StepRepr_SpecifiedHigherUsageOccurrence::StepRepr_SpecifiedHigherUsageOccurrence ()
32{
33}
34
35//=======================================================================
36//function : Init
37//purpose :
38//=======================================================================
39
40void StepRepr_SpecifiedHigherUsageOccurrence::Init (const Handle(TCollection_HAsciiString) &aProductDefinitionRelationship_Id,
41 const Handle(TCollection_HAsciiString) &aProductDefinitionRelationship_Name,
42 const Standard_Boolean hasProductDefinitionRelationship_Description,
43 const Handle(TCollection_HAsciiString) &aProductDefinitionRelationship_Description,
44 const Handle(StepBasic_ProductDefinition) &aProductDefinitionRelationship_RelatingProductDefinition,
45 const Handle(StepBasic_ProductDefinition) &aProductDefinitionRelationship_RelatedProductDefinition,
46 const Standard_Boolean hasAssemblyComponentUsage_ReferenceDesignator,
47 const Handle(TCollection_HAsciiString) &aAssemblyComponentUsage_ReferenceDesignator,
48 const Handle(StepRepr_AssemblyComponentUsage) &aUpperUsage,
49 const Handle(StepRepr_NextAssemblyUsageOccurrence) &aNextUsage)
d658f275 50{
51 StepRepr_AssemblyComponentUsage::Init(aProductDefinitionRelationship_Id,
52 aProductDefinitionRelationship_Name,
53 hasProductDefinitionRelationship_Description,
54 aProductDefinitionRelationship_Description,
55 aProductDefinitionRelationship_RelatingProductDefinition,
56 aProductDefinitionRelationship_RelatedProductDefinition,
57 hasAssemblyComponentUsage_ReferenceDesignator,
58 aAssemblyComponentUsage_ReferenceDesignator);
59
60 theUpperUsage = aUpperUsage;
61
62 theNextUsage = aNextUsage;
63}
64
65//=======================================================================
66//function : Init
67//purpose :
68//=======================================================================
69
70void StepRepr_SpecifiedHigherUsageOccurrence::Init (const Handle(TCollection_HAsciiString) &aProductDefinitionRelationship_Id,
71 const Handle(TCollection_HAsciiString) &aProductDefinitionRelationship_Name,
72 const Standard_Boolean hasProductDefinitionRelationship_Description,
73 const Handle(TCollection_HAsciiString) &aProductDefinitionRelationship_Description,
74 const StepBasic_ProductDefinitionOrReference &aProductDefinitionRelationship_RelatingProductDefinition,
75 const StepBasic_ProductDefinitionOrReference &aProductDefinitionRelationship_RelatedProductDefinition,
76 const Standard_Boolean hasAssemblyComponentUsage_ReferenceDesignator,
77 const Handle(TCollection_HAsciiString) &aAssemblyComponentUsage_ReferenceDesignator,
78 const Handle(StepRepr_AssemblyComponentUsage) &aUpperUsage,
79 const Handle(StepRepr_NextAssemblyUsageOccurrence) &aNextUsage)
7fd59977 80{
81 StepRepr_AssemblyComponentUsage::Init(aProductDefinitionRelationship_Id,
82 aProductDefinitionRelationship_Name,
83 hasProductDefinitionRelationship_Description,
84 aProductDefinitionRelationship_Description,
85 aProductDefinitionRelationship_RelatingProductDefinition,
86 aProductDefinitionRelationship_RelatedProductDefinition,
87 hasAssemblyComponentUsage_ReferenceDesignator,
88 aAssemblyComponentUsage_ReferenceDesignator);
89
90 theUpperUsage = aUpperUsage;
91
92 theNextUsage = aNextUsage;
93}
94
95//=======================================================================
96//function : UpperUsage
97//purpose :
98//=======================================================================
99
100Handle(StepRepr_AssemblyComponentUsage) StepRepr_SpecifiedHigherUsageOccurrence::UpperUsage () const
101{
102 return theUpperUsage;
103}
104
105//=======================================================================
106//function : SetUpperUsage
107//purpose :
108//=======================================================================
109
110void StepRepr_SpecifiedHigherUsageOccurrence::SetUpperUsage (const Handle(StepRepr_AssemblyComponentUsage) &aUpperUsage)
111{
112 theUpperUsage = aUpperUsage;
113}
114
115//=======================================================================
116//function : NextUsage
117//purpose :
118//=======================================================================
119
120Handle(StepRepr_NextAssemblyUsageOccurrence) StepRepr_SpecifiedHigherUsageOccurrence::NextUsage () const
121{
122 return theNextUsage;
123}
124
125//=======================================================================
126//function : SetNextUsage
127//purpose :
128//=======================================================================
129
130void StepRepr_SpecifiedHigherUsageOccurrence::SetNextUsage (const Handle(StepRepr_NextAssemblyUsageOccurrence) &aNextUsage)
131{
132 theNextUsage = aNextUsage;
133}