1 // Created on: 2000-05-11
2 // Created by: data exchange team
3 // Copyright (c) 2000-2014 OPEN CASCADE SAS
5 // This file is part of Open CASCADE Technology software library.
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.
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
16 // Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.1
18 #include <StepBasic_CharacterizedObject.hxx>
19 #include <TCollection_HAsciiString.hxx>
21 IMPLEMENT_STANDARD_RTTIEXT(StepBasic_CharacterizedObject,Standard_Transient)
23 //=======================================================================
24 //function : StepBasic_CharacterizedObject
26 //=======================================================================
27 StepBasic_CharacterizedObject::StepBasic_CharacterizedObject ()
29 defDescription = Standard_False;
32 //=======================================================================
35 //=======================================================================
37 void StepBasic_CharacterizedObject::Init (const Handle(TCollection_HAsciiString) &aName,
38 const Standard_Boolean hasDescription,
39 const Handle(TCollection_HAsciiString) &aDescription)
43 defDescription = hasDescription;
45 theDescription = aDescription;
47 else theDescription.Nullify();
50 //=======================================================================
53 //=======================================================================
55 Handle(TCollection_HAsciiString) StepBasic_CharacterizedObject::Name () const
60 //=======================================================================
63 //=======================================================================
65 void StepBasic_CharacterizedObject::SetName (const Handle(TCollection_HAsciiString) &aName)
70 //=======================================================================
71 //function : Description
73 //=======================================================================
75 Handle(TCollection_HAsciiString) StepBasic_CharacterizedObject::Description () const
77 return theDescription;
80 //=======================================================================
81 //function : SetDescription
83 //=======================================================================
85 void StepBasic_CharacterizedObject::SetDescription (const Handle(TCollection_HAsciiString) &aDescription)
87 theDescription = aDescription;
90 //=======================================================================
91 //function : HasDescription
93 //=======================================================================
95 Standard_Boolean StepBasic_CharacterizedObject::HasDescription () const
97 return defDescription;