1 // Created on: 2000-05-10
2 // Created by: Andrey BETENEV
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 <Standard_Type.hxx>
19 #include <StepBasic_ObjectRole.hxx>
20 #include <TCollection_HAsciiString.hxx>
22 IMPLEMENT_STANDARD_RTTIEXT(StepBasic_ObjectRole,Standard_Transient)
24 //=======================================================================
25 //function : StepBasic_ObjectRole
27 //=======================================================================
28 StepBasic_ObjectRole::StepBasic_ObjectRole ()
30 defDescription = Standard_False;
33 //=======================================================================
36 //=======================================================================
38 void StepBasic_ObjectRole::Init (const Handle(TCollection_HAsciiString) &aName,
39 const Standard_Boolean hasDescription,
40 const Handle(TCollection_HAsciiString) &aDescription)
45 defDescription = hasDescription;
47 theDescription = aDescription;
49 else theDescription.Nullify();
52 //=======================================================================
55 //=======================================================================
57 Handle(TCollection_HAsciiString) StepBasic_ObjectRole::Name () const
62 //=======================================================================
65 //=======================================================================
67 void StepBasic_ObjectRole::SetName (const Handle(TCollection_HAsciiString) &aName)
72 //=======================================================================
73 //function : Description
75 //=======================================================================
77 Handle(TCollection_HAsciiString) StepBasic_ObjectRole::Description () const
79 return theDescription;
82 //=======================================================================
83 //function : SetDescription
85 //=======================================================================
87 void StepBasic_ObjectRole::SetDescription (const Handle(TCollection_HAsciiString) &aDescription)
89 theDescription = aDescription;
92 //=======================================================================
93 //function : HasDescription
95 //=======================================================================
97 Standard_Boolean StepBasic_ObjectRole::HasDescription () const
99 return defDescription;