1 // Created on: 2000-07-03
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 <StepRepr_CharacterizedDefinition.hxx>
20 #include <StepRepr_PropertyDefinition.hxx>
21 #include <TCollection_HAsciiString.hxx>
23 IMPLEMENT_STANDARD_RTTIEXT(StepRepr_PropertyDefinition,MMgt_TShared)
25 //=======================================================================
26 //function : StepRepr_PropertyDefinition
28 //=======================================================================
29 StepRepr_PropertyDefinition::StepRepr_PropertyDefinition ()
31 defDescription = Standard_False;
34 //=======================================================================
37 //=======================================================================
39 void StepRepr_PropertyDefinition::Init (const Handle(TCollection_HAsciiString) &aName,
40 const Standard_Boolean hasDescription,
41 const Handle(TCollection_HAsciiString) &aDescription,
42 const StepRepr_CharacterizedDefinition &aDefinition)
47 defDescription = hasDescription;
49 theDescription = aDescription;
51 else theDescription.Nullify();
53 theDefinition = aDefinition;
56 //=======================================================================
59 //=======================================================================
61 Handle(TCollection_HAsciiString) StepRepr_PropertyDefinition::Name () const
66 //=======================================================================
69 //=======================================================================
71 void StepRepr_PropertyDefinition::SetName (const Handle(TCollection_HAsciiString) &aName)
76 //=======================================================================
77 //function : Description
79 //=======================================================================
81 Handle(TCollection_HAsciiString) StepRepr_PropertyDefinition::Description () const
83 return theDescription;
86 //=======================================================================
87 //function : SetDescription
89 //=======================================================================
91 void StepRepr_PropertyDefinition::SetDescription (const Handle(TCollection_HAsciiString) &aDescription)
93 theDescription = aDescription;
96 //=======================================================================
97 //function : HasDescription
99 //=======================================================================
101 Standard_Boolean StepRepr_PropertyDefinition::HasDescription () const
103 return defDescription;
106 //=======================================================================
107 //function : Definition
109 //=======================================================================
111 StepRepr_CharacterizedDefinition StepRepr_PropertyDefinition::Definition () const
113 return theDefinition;
116 //=======================================================================
117 //function : SetDefinition
119 //=======================================================================
121 void StepRepr_PropertyDefinition::SetDefinition (const StepRepr_CharacterizedDefinition &aDefinition)
123 theDefinition = aDefinition;