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 <TCollection_HAsciiString.hxx> |
7fd59977 |
22 | |
92efcf78 |
23 | IMPLEMENT_STANDARD_RTTIEXT(StepRepr_AssemblyComponentUsage,StepRepr_ProductDefinitionUsage) |
24 | |
7fd59977 |
25 | //======================================================================= |
26 | //function : StepRepr_AssemblyComponentUsage |
27 | //purpose : |
28 | //======================================================================= |
7fd59977 |
29 | StepRepr_AssemblyComponentUsage::StepRepr_AssemblyComponentUsage () |
30 | { |
31 | defReferenceDesignator = Standard_False; |
32 | } |
33 | |
34 | //======================================================================= |
35 | //function : Init |
36 | //purpose : |
37 | //======================================================================= |
38 | |
39 | void StepRepr_AssemblyComponentUsage::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 hasReferenceDesignator, |
46 | const Handle(TCollection_HAsciiString) &aReferenceDesignator) |
47 | { |
48 | StepRepr_ProductDefinitionUsage::Init(aProductDefinitionRelationship_Id, |
49 | aProductDefinitionRelationship_Name, |
50 | hasProductDefinitionRelationship_Description, |
51 | aProductDefinitionRelationship_Description, |
52 | aProductDefinitionRelationship_RelatingProductDefinition, |
53 | aProductDefinitionRelationship_RelatedProductDefinition); |
54 | |
55 | defReferenceDesignator = hasReferenceDesignator; |
56 | if (defReferenceDesignator) { |
57 | theReferenceDesignator = aReferenceDesignator; |
58 | } |
59 | else theReferenceDesignator.Nullify(); |
60 | } |
61 | |
62 | //======================================================================= |
d658f275 |
63 | //function : Init |
64 | //purpose : |
65 | //======================================================================= |
66 | |
67 | void StepRepr_AssemblyComponentUsage::Init (const Handle(TCollection_HAsciiString) &aProductDefinitionRelationship_Id, |
68 | const Handle(TCollection_HAsciiString) &aProductDefinitionRelationship_Name, |
69 | const Standard_Boolean hasProductDefinitionRelationship_Description, |
70 | const Handle(TCollection_HAsciiString) &aProductDefinitionRelationship_Description, |
71 | const StepBasic_ProductDefinitionOrReference &aProductDefinitionRelationship_RelatingProductDefinition, |
72 | const StepBasic_ProductDefinitionOrReference &aProductDefinitionRelationship_RelatedProductDefinition, |
73 | const Standard_Boolean hasReferenceDesignator, |
74 | const Handle(TCollection_HAsciiString) &aReferenceDesignator) |
75 | { |
76 | StepRepr_ProductDefinitionUsage::Init(aProductDefinitionRelationship_Id, |
77 | aProductDefinitionRelationship_Name, |
78 | hasProductDefinitionRelationship_Description, |
79 | aProductDefinitionRelationship_Description, |
80 | aProductDefinitionRelationship_RelatingProductDefinition, |
81 | aProductDefinitionRelationship_RelatedProductDefinition); |
82 | |
83 | defReferenceDesignator = hasReferenceDesignator; |
84 | if (defReferenceDesignator) { |
85 | theReferenceDesignator = aReferenceDesignator; |
86 | } |
87 | else theReferenceDesignator.Nullify(); |
88 | } |
89 | |
90 | //======================================================================= |
7fd59977 |
91 | //function : ReferenceDesignator |
92 | //purpose : |
93 | //======================================================================= |
94 | |
95 | Handle(TCollection_HAsciiString) StepRepr_AssemblyComponentUsage::ReferenceDesignator () const |
96 | { |
97 | return theReferenceDesignator; |
98 | } |
99 | |
100 | //======================================================================= |
101 | //function : SetReferenceDesignator |
102 | //purpose : |
103 | //======================================================================= |
104 | |
105 | void StepRepr_AssemblyComponentUsage::SetReferenceDesignator (const Handle(TCollection_HAsciiString) &aReferenceDesignator) |
106 | { |
107 | theReferenceDesignator = aReferenceDesignator; |
108 | } |
109 | |
110 | //======================================================================= |
111 | //function : HasReferenceDesignator |
112 | //purpose : |
113 | //======================================================================= |
114 | |
115 | Standard_Boolean StepRepr_AssemblyComponentUsage::HasReferenceDesignator () const |
116 | { |
117 | return defReferenceDesignator; |
118 | } |