0031668: Visualization - WebGL sample doesn't work on Emscripten 1.39
[occt.git] / src / StepBasic / StepBasic_Group.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 <Standard_Type.hxx>
19 #include <StepBasic_Group.hxx>
20 #include <TCollection_HAsciiString.hxx>
21
22 IMPLEMENT_STANDARD_RTTIEXT(StepBasic_Group,Standard_Transient)
23
24 //=======================================================================
25 //function : StepBasic_Group
26 //purpose  : 
27 //=======================================================================
28 StepBasic_Group::StepBasic_Group ()
29 {
30   defDescription = Standard_False;
31 }
32
33 //=======================================================================
34 //function : Init
35 //purpose  : 
36 //=======================================================================
37
38 void StepBasic_Group::Init (const Handle(TCollection_HAsciiString) &aName,
39                             const Standard_Boolean hasDescription,
40                             const Handle(TCollection_HAsciiString) &aDescription)
41 {
42
43   theName = aName;
44
45   defDescription = hasDescription;
46   if (defDescription) {
47     theDescription = aDescription;
48   }
49   else theDescription.Nullify();
50 }
51
52 //=======================================================================
53 //function : Name
54 //purpose  : 
55 //=======================================================================
56
57 Handle(TCollection_HAsciiString) StepBasic_Group::Name () const
58 {
59   return theName;
60 }
61
62 //=======================================================================
63 //function : SetName
64 //purpose  : 
65 //=======================================================================
66
67 void StepBasic_Group::SetName (const Handle(TCollection_HAsciiString) &aName)
68 {
69   theName = aName;
70 }
71
72 //=======================================================================
73 //function : Description
74 //purpose  : 
75 //=======================================================================
76
77 Handle(TCollection_HAsciiString) StepBasic_Group::Description () const
78 {
79   return theDescription;
80 }
81
82 //=======================================================================
83 //function : SetDescription
84 //purpose  : 
85 //=======================================================================
86
87 void StepBasic_Group::SetDescription (const Handle(TCollection_HAsciiString) &aDescription)
88 {
89   theDescription = aDescription;
90 }
91
92 //=======================================================================
93 //function : HasDescription
94 //purpose  : 
95 //=======================================================================
96
97 Standard_Boolean StepBasic_Group::HasDescription () const
98 {
99   return defDescription;
100 }