0029590: Coding - avoid usage of Standard_EXPORT attribute for inline methods
[occt.git] / src / StepRepr / StepRepr_ConfigurationItem.cxx
CommitLineData
b311480e 1// Created on: 1999-11-26
2// Created by: Andrey BETENEV
3// Copyright (c) 1999 Matra Datavision
973c2be1 4// Copyright (c) 1999-2014 OPEN CASCADE SAS
b311480e 5//
973c2be1 6// This file is part of Open CASCADE Technology software library.
b311480e 7//
d5f74e42 8// This library is free software; you can redistribute it and/or modify it under
9// the terms of the GNU Lesser General Public License version 2.1 as published
973c2be1 10// by the Free Software Foundation, with special exception defined in the file
11// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12// distribution for complete text of the license and disclaimer of any warranty.
b311480e 13//
973c2be1 14// Alternatively, this file may be used under the terms of Open CASCADE
15// commercial license or contractual agreement.
b311480e 16
7fd59977 17// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.0
7fd59977 18
42cf5bc1 19#include <Standard_Type.hxx>
20#include <StepRepr_ConfigurationItem.hxx>
21#include <StepRepr_ProductConcept.hxx>
22#include <TCollection_HAsciiString.hxx>
7fd59977 23
25e59720 24IMPLEMENT_STANDARD_RTTIEXT(StepRepr_ConfigurationItem,Standard_Transient)
92efcf78 25
7fd59977 26//=======================================================================
27//function : StepRepr_ConfigurationItem
28//purpose :
29//=======================================================================
7fd59977 30StepRepr_ConfigurationItem::StepRepr_ConfigurationItem ()
31{
32 defDescription = Standard_False;
33 defPurpose = Standard_False;
34}
35
36//=======================================================================
37//function : Init
38//purpose :
39//=======================================================================
40
41void 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
74Handle(TCollection_HAsciiString) StepRepr_ConfigurationItem::Id () const
75{
76 return theId;
77}
78
79//=======================================================================
80//function : SetId
81//purpose :
82//=======================================================================
83
84void StepRepr_ConfigurationItem::SetId (const Handle(TCollection_HAsciiString) &aId)
85{
86 theId = aId;
87}
88
89//=======================================================================
90//function : Name
91//purpose :
92//=======================================================================
93
94Handle(TCollection_HAsciiString) StepRepr_ConfigurationItem::Name () const
95{
96 return theName;
97}
98
99//=======================================================================
100//function : SetName
101//purpose :
102//=======================================================================
103
104void StepRepr_ConfigurationItem::SetName (const Handle(TCollection_HAsciiString) &aName)
105{
106 theName = aName;
107}
108
109//=======================================================================
110//function : Description
111//purpose :
112//=======================================================================
113
114Handle(TCollection_HAsciiString) StepRepr_ConfigurationItem::Description () const
115{
116 return theDescription;
117}
118
119//=======================================================================
120//function : SetDescription
121//purpose :
122//=======================================================================
123
124void StepRepr_ConfigurationItem::SetDescription (const Handle(TCollection_HAsciiString) &aDescription)
125{
126 theDescription = aDescription;
127}
128
129//=======================================================================
130//function : HasDescription
131//purpose :
132//=======================================================================
133
134Standard_Boolean StepRepr_ConfigurationItem::HasDescription () const
135{
136 return defDescription;
137}
138
139//=======================================================================
140//function : ItemConcept
141//purpose :
142//=======================================================================
143
144Handle(StepRepr_ProductConcept) StepRepr_ConfigurationItem::ItemConcept () const
145{
146 return theItemConcept;
147}
148
149//=======================================================================
150//function : SetItemConcept
151//purpose :
152//=======================================================================
153
154void StepRepr_ConfigurationItem::SetItemConcept (const Handle(StepRepr_ProductConcept) &aItemConcept)
155{
156 theItemConcept = aItemConcept;
157}
158
159//=======================================================================
160//function : Purpose
161//purpose :
162//=======================================================================
163
164Handle(TCollection_HAsciiString) StepRepr_ConfigurationItem::Purpose () const
165{
166 return thePurpose;
167}
168
169//=======================================================================
170//function : SetPurpose
171//purpose :
172//=======================================================================
173
174void StepRepr_ConfigurationItem::SetPurpose (const Handle(TCollection_HAsciiString) &aPurpose)
175{
176 thePurpose = aPurpose;
177}
178
179//=======================================================================
180//function : HasPurpose
181//purpose :
182//=======================================================================
183
184Standard_Boolean StepRepr_ConfigurationItem::HasPurpose () const
185{
186 return defPurpose;
187}