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_MakeFromUsageOption.hxx> |
22 | #include <TCollection_HAsciiString.hxx> |
7fd59977 |
23 | |
92efcf78 |
24 | IMPLEMENT_STANDARD_RTTIEXT(StepRepr_MakeFromUsageOption,StepRepr_ProductDefinitionUsage) |
25 | |
7fd59977 |
26 | //======================================================================= |
27 | //function : StepRepr_MakeFromUsageOption |
28 | //purpose : |
29 | //======================================================================= |
7fd59977 |
30 | StepRepr_MakeFromUsageOption::StepRepr_MakeFromUsageOption () |
31 | { |
32 | } |
33 | |
34 | //======================================================================= |
35 | //function : Init |
36 | //purpose : |
37 | //======================================================================= |
38 | |
39 | void StepRepr_MakeFromUsageOption::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_Integer aRanking, |
46 | const Handle(TCollection_HAsciiString) &aRankingRationale, |
47 | const Handle(StepBasic_MeasureWithUnit) &aQuantity) |
48 | { |
49 | StepRepr_ProductDefinitionUsage::Init(aProductDefinitionRelationship_Id, |
50 | aProductDefinitionRelationship_Name, |
51 | hasProductDefinitionRelationship_Description, |
52 | aProductDefinitionRelationship_Description, |
53 | aProductDefinitionRelationship_RelatingProductDefinition, |
54 | aProductDefinitionRelationship_RelatedProductDefinition); |
55 | |
56 | theRanking = aRanking; |
57 | |
58 | theRankingRationale = aRankingRationale; |
59 | |
60 | theQuantity = aQuantity; |
61 | } |
62 | |
63 | //======================================================================= |
64 | //function : Ranking |
65 | //purpose : |
66 | //======================================================================= |
67 | |
68 | Standard_Integer StepRepr_MakeFromUsageOption::Ranking () const |
69 | { |
70 | return theRanking; |
71 | } |
72 | |
73 | //======================================================================= |
74 | //function : SetRanking |
75 | //purpose : |
76 | //======================================================================= |
77 | |
78 | void StepRepr_MakeFromUsageOption::SetRanking (const Standard_Integer aRanking) |
79 | { |
80 | theRanking = aRanking; |
81 | } |
82 | |
83 | //======================================================================= |
84 | //function : RankingRationale |
85 | //purpose : |
86 | //======================================================================= |
87 | |
88 | Handle(TCollection_HAsciiString) StepRepr_MakeFromUsageOption::RankingRationale () const |
89 | { |
90 | return theRankingRationale; |
91 | } |
92 | |
93 | //======================================================================= |
94 | //function : SetRankingRationale |
95 | //purpose : |
96 | //======================================================================= |
97 | |
98 | void StepRepr_MakeFromUsageOption::SetRankingRationale (const Handle(TCollection_HAsciiString) &aRankingRationale) |
99 | { |
100 | theRankingRationale = aRankingRationale; |
101 | } |
102 | |
103 | //======================================================================= |
104 | //function : Quantity |
105 | //purpose : |
106 | //======================================================================= |
107 | |
108 | Handle(StepBasic_MeasureWithUnit) StepRepr_MakeFromUsageOption::Quantity () const |
109 | { |
110 | return theQuantity; |
111 | } |
112 | |
113 | //======================================================================= |
114 | //function : SetQuantity |
115 | //purpose : |
116 | //======================================================================= |
117 | |
118 | void StepRepr_MakeFromUsageOption::SetQuantity (const Handle(StepBasic_MeasureWithUnit) &aQuantity) |
119 | { |
120 | theQuantity = aQuantity; |
121 | } |