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 <StepBasic_GeneralProperty.hxx>
19 #include <TCollection_HAsciiString.hxx>
21 IMPLEMENT_STANDARD_RTTIEXT(StepBasic_GeneralProperty,Standard_Transient)
23 //=======================================================================
24 //function : StepBasic_GeneralProperty
26 //=======================================================================
27 StepBasic_GeneralProperty::StepBasic_GeneralProperty ()
29 defDescription = Standard_False;
32 //=======================================================================
35 //=======================================================================
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)
47 defDescription = hasDescription;
49 theDescription = aDescription;
51 else theDescription.Nullify();
54 //=======================================================================
57 //=======================================================================
59 Handle(TCollection_HAsciiString) StepBasic_GeneralProperty::Id () const
64 //=======================================================================
67 //=======================================================================
69 void StepBasic_GeneralProperty::SetId (const Handle(TCollection_HAsciiString) &aId)
74 //=======================================================================
77 //=======================================================================
79 Handle(TCollection_HAsciiString) StepBasic_GeneralProperty::Name () const
84 //=======================================================================
87 //=======================================================================
89 void StepBasic_GeneralProperty::SetName (const Handle(TCollection_HAsciiString) &aName)
94 //=======================================================================
95 //function : Description
97 //=======================================================================
99 Handle(TCollection_HAsciiString) StepBasic_GeneralProperty::Description () const
101 return theDescription;
104 //=======================================================================
105 //function : SetDescription
107 //=======================================================================
109 void StepBasic_GeneralProperty::SetDescription (const Handle(TCollection_HAsciiString) &aDescription)
111 theDescription = aDescription;
114 //=======================================================================
115 //function : HasDescription
117 //=======================================================================
119 Standard_Boolean StepBasic_GeneralProperty::HasDescription () const
121 return defDescription;