0033022: Coding - get rid of unused headers [ShapeBuild to STEPControl]
[occt.git] / src / StepBasic / StepBasic_GeneralProperty.cxx
1 // Created on: 2000-05-10
2 // Created by: Andrey BETENEV
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_GeneralProperty.hxx>
19 #include <TCollection_HAsciiString.hxx>
20
21 IMPLEMENT_STANDARD_RTTIEXT(StepBasic_GeneralProperty,Standard_Transient)
22
23 //=======================================================================
24 //function : StepBasic_GeneralProperty
25 //purpose  : 
26 //=======================================================================
27 StepBasic_GeneralProperty::StepBasic_GeneralProperty ()
28 {
29   defDescription = Standard_False;
30 }
31
32 //=======================================================================
33 //function : Init
34 //purpose  : 
35 //=======================================================================
36
37 void StepBasic_GeneralProperty::Init (const Handle(TCollection_HAsciiString) &aId,
38                                       const Handle(TCollection_HAsciiString) &aName,
39                                       const Standard_Boolean hasDescription,
40                                       const Handle(TCollection_HAsciiString) &aDescription)
41 {
42
43   theId = aId;
44
45   theName = aName;
46
47   defDescription = hasDescription;
48   if (defDescription) {
49     theDescription = aDescription;
50   }
51   else theDescription.Nullify();
52 }
53
54 //=======================================================================
55 //function : Id
56 //purpose  : 
57 //=======================================================================
58
59 Handle(TCollection_HAsciiString) StepBasic_GeneralProperty::Id () const
60 {
61   return theId;
62 }
63
64 //=======================================================================
65 //function : SetId
66 //purpose  : 
67 //=======================================================================
68
69 void StepBasic_GeneralProperty::SetId (const Handle(TCollection_HAsciiString) &aId)
70 {
71   theId = aId;
72 }
73
74 //=======================================================================
75 //function : Name
76 //purpose  : 
77 //=======================================================================
78
79 Handle(TCollection_HAsciiString) StepBasic_GeneralProperty::Name () const
80 {
81   return theName;
82 }
83
84 //=======================================================================
85 //function : SetName
86 //purpose  : 
87 //=======================================================================
88
89 void StepBasic_GeneralProperty::SetName (const Handle(TCollection_HAsciiString) &aName)
90 {
91   theName = aName;
92 }
93
94 //=======================================================================
95 //function : Description
96 //purpose  : 
97 //=======================================================================
98
99 Handle(TCollection_HAsciiString) StepBasic_GeneralProperty::Description () const
100 {
101   return theDescription;
102 }
103
104 //=======================================================================
105 //function : SetDescription
106 //purpose  : 
107 //=======================================================================
108
109 void StepBasic_GeneralProperty::SetDescription (const Handle(TCollection_HAsciiString) &aDescription)
110 {
111   theDescription = aDescription;
112 }
113
114 //=======================================================================
115 //function : HasDescription
116 //purpose  : 
117 //=======================================================================
118
119 Standard_Boolean StepBasic_GeneralProperty::HasDescription () const
120 {
121   return defDescription;
122 }