1 // File: StepRepr_ConfigurationItem.cxx
2 // Created: Fri Nov 26 16:26:36 1999
3 // Author: Andrey BETENEV
4 // Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.0
5 // Copyright: Matra Datavision 1999
7 #include <StepRepr_ConfigurationItem.ixx>
9 //=======================================================================
10 //function : StepRepr_ConfigurationItem
12 //=======================================================================
14 StepRepr_ConfigurationItem::StepRepr_ConfigurationItem ()
16 defDescription = Standard_False;
17 defPurpose = Standard_False;
20 //=======================================================================
23 //=======================================================================
25 void StepRepr_ConfigurationItem::Init (const Handle(TCollection_HAsciiString) &aId,
26 const Handle(TCollection_HAsciiString) &aName,
27 const Standard_Boolean hasDescription,
28 const Handle(TCollection_HAsciiString) &aDescription,
29 const Handle(StepRepr_ProductConcept) &aItemConcept,
30 const Standard_Boolean hasPurpose,
31 const Handle(TCollection_HAsciiString) &aPurpose)
38 defDescription = hasDescription;
40 theDescription = aDescription;
42 else theDescription.Nullify();
44 theItemConcept = aItemConcept;
46 defPurpose = hasPurpose;
48 thePurpose = aPurpose;
50 else thePurpose.Nullify();
53 //=======================================================================
56 //=======================================================================
58 Handle(TCollection_HAsciiString) StepRepr_ConfigurationItem::Id () const
63 //=======================================================================
66 //=======================================================================
68 void StepRepr_ConfigurationItem::SetId (const Handle(TCollection_HAsciiString) &aId)
73 //=======================================================================
76 //=======================================================================
78 Handle(TCollection_HAsciiString) StepRepr_ConfigurationItem::Name () const
83 //=======================================================================
86 //=======================================================================
88 void StepRepr_ConfigurationItem::SetName (const Handle(TCollection_HAsciiString) &aName)
93 //=======================================================================
94 //function : Description
96 //=======================================================================
98 Handle(TCollection_HAsciiString) StepRepr_ConfigurationItem::Description () const
100 return theDescription;
103 //=======================================================================
104 //function : SetDescription
106 //=======================================================================
108 void StepRepr_ConfigurationItem::SetDescription (const Handle(TCollection_HAsciiString) &aDescription)
110 theDescription = aDescription;
113 //=======================================================================
114 //function : HasDescription
116 //=======================================================================
118 Standard_Boolean StepRepr_ConfigurationItem::HasDescription () const
120 return defDescription;
123 //=======================================================================
124 //function : ItemConcept
126 //=======================================================================
128 Handle(StepRepr_ProductConcept) StepRepr_ConfigurationItem::ItemConcept () const
130 return theItemConcept;
133 //=======================================================================
134 //function : SetItemConcept
136 //=======================================================================
138 void StepRepr_ConfigurationItem::SetItemConcept (const Handle(StepRepr_ProductConcept) &aItemConcept)
140 theItemConcept = aItemConcept;
143 //=======================================================================
146 //=======================================================================
148 Handle(TCollection_HAsciiString) StepRepr_ConfigurationItem::Purpose () const
153 //=======================================================================
154 //function : SetPurpose
156 //=======================================================================
158 void StepRepr_ConfigurationItem::SetPurpose (const Handle(TCollection_HAsciiString) &aPurpose)
160 thePurpose = aPurpose;
163 //=======================================================================
164 //function : HasPurpose
166 //=======================================================================
168 Standard_Boolean StepRepr_ConfigurationItem::HasPurpose () const