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 |
25 | IMPLEMENT_STANDARD_RTTIEXT(StepRepr_SpecifiedHigherUsageOccurrence,StepRepr_AssemblyComponentUsage) |
26 | |
7fd59977 |
27 | //======================================================================= |
28 | //function : StepRepr_SpecifiedHigherUsageOccurrence |
29 | //purpose : |
30 | //======================================================================= |
7fd59977 |
31 | StepRepr_SpecifiedHigherUsageOccurrence::StepRepr_SpecifiedHigherUsageOccurrence () |
32 | { |
33 | } |
34 | |
35 | //======================================================================= |
36 | //function : Init |
37 | //purpose : |
38 | //======================================================================= |
39 | |
40 | void 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) |
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 : UpperUsage |
67 | //purpose : |
68 | //======================================================================= |
69 | |
70 | Handle(StepRepr_AssemblyComponentUsage) StepRepr_SpecifiedHigherUsageOccurrence::UpperUsage () const |
71 | { |
72 | return theUpperUsage; |
73 | } |
74 | |
75 | //======================================================================= |
76 | //function : SetUpperUsage |
77 | //purpose : |
78 | //======================================================================= |
79 | |
80 | void StepRepr_SpecifiedHigherUsageOccurrence::SetUpperUsage (const Handle(StepRepr_AssemblyComponentUsage) &aUpperUsage) |
81 | { |
82 | theUpperUsage = aUpperUsage; |
83 | } |
84 | |
85 | //======================================================================= |
86 | //function : NextUsage |
87 | //purpose : |
88 | //======================================================================= |
89 | |
90 | Handle(StepRepr_NextAssemblyUsageOccurrence) StepRepr_SpecifiedHigherUsageOccurrence::NextUsage () const |
91 | { |
92 | return theNextUsage; |
93 | } |
94 | |
95 | //======================================================================= |
96 | //function : SetNextUsage |
97 | //purpose : |
98 | //======================================================================= |
99 | |
100 | void StepRepr_SpecifiedHigherUsageOccurrence::SetNextUsage (const Handle(StepRepr_NextAssemblyUsageOccurrence) &aNextUsage) |
101 | { |
102 | theNextUsage = aNextUsage; |
103 | } |