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