0033022: Coding - get rid of unused headers [ShapeBuild to STEPControl]
[occt.git] / src / StepBasic / StepBasic_CharacterizedObject.cxx
1 // Created on: 2000-05-11
2 // Created by: data exchange team
3 // Copyright (c) 2000-2014 OPEN CASCADE SAS
4 //
5 // This file is part of Open CASCADE Technology software library.
6 //
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
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.
12 //
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
15
16 // Generator:   ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.1
17
18 #include <StepBasic_CharacterizedObject.hxx>
19 #include <TCollection_HAsciiString.hxx>
20
21 IMPLEMENT_STANDARD_RTTIEXT(StepBasic_CharacterizedObject,Standard_Transient)
22
23 //=======================================================================
24 //function : StepBasic_CharacterizedObject
25 //purpose  : 
26 //=======================================================================
27 StepBasic_CharacterizedObject::StepBasic_CharacterizedObject ()
28 {
29   defDescription = Standard_False;
30 }
31
32 //=======================================================================
33 //function : Init
34 //purpose  : 
35 //=======================================================================
36
37 void StepBasic_CharacterizedObject::Init (const Handle(TCollection_HAsciiString) &aName,
38                                           const Standard_Boolean hasDescription,
39                                           const Handle(TCollection_HAsciiString) &aDescription)
40 {
41   theName = aName;
42
43   defDescription = hasDescription;
44   if (defDescription) {
45     theDescription = aDescription;
46   }
47   else theDescription.Nullify();
48 }
49
50 //=======================================================================
51 //function : Name
52 //purpose  : 
53 //=======================================================================
54
55 Handle(TCollection_HAsciiString) StepBasic_CharacterizedObject::Name () const
56 {
57   return theName;
58 }
59
60 //=======================================================================
61 //function : SetName
62 //purpose  : 
63 //=======================================================================
64
65 void StepBasic_CharacterizedObject::SetName (const Handle(TCollection_HAsciiString) &aName)
66 {
67   theName = aName;
68 }
69
70 //=======================================================================
71 //function : Description
72 //purpose  : 
73 //=======================================================================
74
75 Handle(TCollection_HAsciiString) StepBasic_CharacterizedObject::Description () const
76 {
77   return theDescription;
78 }
79
80 //=======================================================================
81 //function : SetDescription
82 //purpose  : 
83 //=======================================================================
84
85 void StepBasic_CharacterizedObject::SetDescription (const Handle(TCollection_HAsciiString) &aDescription)
86 {
87   theDescription = aDescription;
88 }
89
90 //=======================================================================
91 //function : HasDescription
92 //purpose  : 
93 //=======================================================================
94
95 Standard_Boolean StepBasic_CharacterizedObject::HasDescription () const
96 {
97   return defDescription;
98 }