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_MeasureWithUnit.hxx> |
20 | #include <StepBasic_ProductDefinition.hxx> |
21 | #include <StepRepr_QuantifiedAssemblyComponentUsage.hxx> |
22 | #include <TCollection_HAsciiString.hxx> |
7fd59977 |
23 | |
92efcf78 |
24 | IMPLEMENT_STANDARD_RTTIEXT(StepRepr_QuantifiedAssemblyComponentUsage,StepRepr_AssemblyComponentUsage) |
25 | |
7fd59977 |
26 | //======================================================================= |
27 | //function : StepRepr_QuantifiedAssemblyComponentUsage |
28 | //purpose : |
29 | //======================================================================= |
7fd59977 |
30 | StepRepr_QuantifiedAssemblyComponentUsage::StepRepr_QuantifiedAssemblyComponentUsage () |
31 | { |
32 | } |
33 | |
34 | //======================================================================= |
35 | //function : Init |
36 | //purpose : |
37 | //======================================================================= |
38 | |
39 | void StepRepr_QuantifiedAssemblyComponentUsage::Init (const Handle(TCollection_HAsciiString) &aProductDefinitionRelationship_Id, |
40 | const Handle(TCollection_HAsciiString) &aProductDefinitionRelationship_Name, |
41 | const Standard_Boolean hasProductDefinitionRelationship_Description, |
42 | const Handle(TCollection_HAsciiString) &aProductDefinitionRelationship_Description, |
43 | const Handle(StepBasic_ProductDefinition) &aProductDefinitionRelationship_RelatingProductDefinition, |
44 | const Handle(StepBasic_ProductDefinition) &aProductDefinitionRelationship_RelatedProductDefinition, |
45 | const Standard_Boolean hasAssemblyComponentUsage_ReferenceDesignator, |
46 | const Handle(TCollection_HAsciiString) &aAssemblyComponentUsage_ReferenceDesignator, |
47 | const Handle(StepBasic_MeasureWithUnit) &aQuantity) |
d658f275 |
48 | { |
49 | StepRepr_AssemblyComponentUsage::Init(aProductDefinitionRelationship_Id, |
50 | aProductDefinitionRelationship_Name, |
51 | hasProductDefinitionRelationship_Description, |
52 | aProductDefinitionRelationship_Description, |
53 | aProductDefinitionRelationship_RelatingProductDefinition, |
54 | aProductDefinitionRelationship_RelatedProductDefinition, |
55 | hasAssemblyComponentUsage_ReferenceDesignator, |
56 | aAssemblyComponentUsage_ReferenceDesignator); |
57 | |
58 | theQuantity = aQuantity; |
59 | } |
60 | |
61 | //======================================================================= |
62 | //function : Init |
63 | //purpose : |
64 | //======================================================================= |
65 | |
66 | void StepRepr_QuantifiedAssemblyComponentUsage::Init (const Handle(TCollection_HAsciiString) &aProductDefinitionRelationship_Id, |
67 | const Handle(TCollection_HAsciiString) &aProductDefinitionRelationship_Name, |
68 | const Standard_Boolean hasProductDefinitionRelationship_Description, |
69 | const Handle(TCollection_HAsciiString) &aProductDefinitionRelationship_Description, |
70 | const StepBasic_ProductDefinitionOrReference &aProductDefinitionRelationship_RelatingProductDefinition, |
71 | const StepBasic_ProductDefinitionOrReference &aProductDefinitionRelationship_RelatedProductDefinition, |
72 | const Standard_Boolean hasAssemblyComponentUsage_ReferenceDesignator, |
73 | const Handle(TCollection_HAsciiString) &aAssemblyComponentUsage_ReferenceDesignator, |
74 | const Handle(StepBasic_MeasureWithUnit) &aQuantity) |
7fd59977 |
75 | { |
76 | StepRepr_AssemblyComponentUsage::Init(aProductDefinitionRelationship_Id, |
77 | aProductDefinitionRelationship_Name, |
78 | hasProductDefinitionRelationship_Description, |
79 | aProductDefinitionRelationship_Description, |
80 | aProductDefinitionRelationship_RelatingProductDefinition, |
81 | aProductDefinitionRelationship_RelatedProductDefinition, |
82 | hasAssemblyComponentUsage_ReferenceDesignator, |
83 | aAssemblyComponentUsage_ReferenceDesignator); |
84 | |
85 | theQuantity = aQuantity; |
86 | } |
87 | |
88 | //======================================================================= |
89 | //function : Quantity |
90 | //purpose : |
91 | //======================================================================= |
92 | |
93 | Handle(StepBasic_MeasureWithUnit) StepRepr_QuantifiedAssemblyComponentUsage::Quantity () const |
94 | { |
95 | return theQuantity; |
96 | } |
97 | |
98 | //======================================================================= |
99 | //function : SetQuantity |
100 | //purpose : |
101 | //======================================================================= |
102 | |
103 | void StepRepr_QuantifiedAssemblyComponentUsage::SetQuantity (const Handle(StepBasic_MeasureWithUnit) &aQuantity) |
104 | { |
105 | theQuantity = aQuantity; |
106 | } |