b311480e |
1 | // Created on: 1999-11-26 |
2 | // Created by: Andrey BETENEV |
3 | // Copyright (c) 1999 Matra Datavision |
4 | // Copyright (c) 1999-2012 OPEN CASCADE SAS |
5 | // |
6 | // The content of this file is subject to the Open CASCADE Technology Public |
7 | // License Version 6.5 (the "License"). You may not use the content of this file |
8 | // except in compliance with the License. Please obtain a copy of the License |
9 | // at http://www.opencascade.org and read it completely before using this file. |
10 | // |
11 | // The Initial Developer of the Original Code is Open CASCADE S.A.S., having its |
12 | // main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France. |
13 | // |
14 | // The Original Code and all software distributed under the License is |
15 | // distributed on an "AS IS" basis, without warranty of any kind, and the |
16 | // Initial Developer hereby disclaims all such warranties, including without |
17 | // limitation, any warranties of merchantability, fitness for a particular |
18 | // purpose or non-infringement. Please see the License for the specific terms |
19 | // and conditions governing the rights and limitations under the License. |
20 | |
7fd59977 |
21 | // Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.0 |
7fd59977 |
22 | |
23 | #include <StepRepr_ConfigurationItem.ixx> |
24 | |
25 | //======================================================================= |
26 | //function : StepRepr_ConfigurationItem |
27 | //purpose : |
28 | //======================================================================= |
29 | |
30 | StepRepr_ConfigurationItem::StepRepr_ConfigurationItem () |
31 | { |
32 | defDescription = Standard_False; |
33 | defPurpose = Standard_False; |
34 | } |
35 | |
36 | //======================================================================= |
37 | //function : Init |
38 | //purpose : |
39 | //======================================================================= |
40 | |
41 | void StepRepr_ConfigurationItem::Init (const Handle(TCollection_HAsciiString) &aId, |
42 | const Handle(TCollection_HAsciiString) &aName, |
43 | const Standard_Boolean hasDescription, |
44 | const Handle(TCollection_HAsciiString) &aDescription, |
45 | const Handle(StepRepr_ProductConcept) &aItemConcept, |
46 | const Standard_Boolean hasPurpose, |
47 | const Handle(TCollection_HAsciiString) &aPurpose) |
48 | { |
49 | |
50 | theId = aId; |
51 | |
52 | theName = aName; |
53 | |
54 | defDescription = hasDescription; |
55 | if (defDescription) { |
56 | theDescription = aDescription; |
57 | } |
58 | else theDescription.Nullify(); |
59 | |
60 | theItemConcept = aItemConcept; |
61 | |
62 | defPurpose = hasPurpose; |
63 | if (defPurpose) { |
64 | thePurpose = aPurpose; |
65 | } |
66 | else thePurpose.Nullify(); |
67 | } |
68 | |
69 | //======================================================================= |
70 | //function : Id |
71 | //purpose : |
72 | //======================================================================= |
73 | |
74 | Handle(TCollection_HAsciiString) StepRepr_ConfigurationItem::Id () const |
75 | { |
76 | return theId; |
77 | } |
78 | |
79 | //======================================================================= |
80 | //function : SetId |
81 | //purpose : |
82 | //======================================================================= |
83 | |
84 | void StepRepr_ConfigurationItem::SetId (const Handle(TCollection_HAsciiString) &aId) |
85 | { |
86 | theId = aId; |
87 | } |
88 | |
89 | //======================================================================= |
90 | //function : Name |
91 | //purpose : |
92 | //======================================================================= |
93 | |
94 | Handle(TCollection_HAsciiString) StepRepr_ConfigurationItem::Name () const |
95 | { |
96 | return theName; |
97 | } |
98 | |
99 | //======================================================================= |
100 | //function : SetName |
101 | //purpose : |
102 | //======================================================================= |
103 | |
104 | void StepRepr_ConfigurationItem::SetName (const Handle(TCollection_HAsciiString) &aName) |
105 | { |
106 | theName = aName; |
107 | } |
108 | |
109 | //======================================================================= |
110 | //function : Description |
111 | //purpose : |
112 | //======================================================================= |
113 | |
114 | Handle(TCollection_HAsciiString) StepRepr_ConfigurationItem::Description () const |
115 | { |
116 | return theDescription; |
117 | } |
118 | |
119 | //======================================================================= |
120 | //function : SetDescription |
121 | //purpose : |
122 | //======================================================================= |
123 | |
124 | void StepRepr_ConfigurationItem::SetDescription (const Handle(TCollection_HAsciiString) &aDescription) |
125 | { |
126 | theDescription = aDescription; |
127 | } |
128 | |
129 | //======================================================================= |
130 | //function : HasDescription |
131 | //purpose : |
132 | //======================================================================= |
133 | |
134 | Standard_Boolean StepRepr_ConfigurationItem::HasDescription () const |
135 | { |
136 | return defDescription; |
137 | } |
138 | |
139 | //======================================================================= |
140 | //function : ItemConcept |
141 | //purpose : |
142 | //======================================================================= |
143 | |
144 | Handle(StepRepr_ProductConcept) StepRepr_ConfigurationItem::ItemConcept () const |
145 | { |
146 | return theItemConcept; |
147 | } |
148 | |
149 | //======================================================================= |
150 | //function : SetItemConcept |
151 | //purpose : |
152 | //======================================================================= |
153 | |
154 | void StepRepr_ConfigurationItem::SetItemConcept (const Handle(StepRepr_ProductConcept) &aItemConcept) |
155 | { |
156 | theItemConcept = aItemConcept; |
157 | } |
158 | |
159 | //======================================================================= |
160 | //function : Purpose |
161 | //purpose : |
162 | //======================================================================= |
163 | |
164 | Handle(TCollection_HAsciiString) StepRepr_ConfigurationItem::Purpose () const |
165 | { |
166 | return thePurpose; |
167 | } |
168 | |
169 | //======================================================================= |
170 | //function : SetPurpose |
171 | //purpose : |
172 | //======================================================================= |
173 | |
174 | void StepRepr_ConfigurationItem::SetPurpose (const Handle(TCollection_HAsciiString) &aPurpose) |
175 | { |
176 | thePurpose = aPurpose; |
177 | } |
178 | |
179 | //======================================================================= |
180 | //function : HasPurpose |
181 | //purpose : |
182 | //======================================================================= |
183 | |
184 | Standard_Boolean StepRepr_ConfigurationItem::HasPurpose () const |
185 | { |
186 | return defPurpose; |
187 | } |