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_Group.hxx>
20 #include <StepBasic_GroupRelationship.hxx>
21 #include <TCollection_HAsciiString.hxx>
23 IMPLEMENT_STANDARD_RTTIEXT(StepBasic_GroupRelationship,Standard_Transient)
25 //=======================================================================
26 //function : StepBasic_GroupRelationship
28 //=======================================================================
29 StepBasic_GroupRelationship::StepBasic_GroupRelationship ()
31 defDescription = Standard_False;
34 //=======================================================================
37 //=======================================================================
39 void StepBasic_GroupRelationship::Init (const Handle(TCollection_HAsciiString) &aName,
40 const Standard_Boolean hasDescription,
41 const Handle(TCollection_HAsciiString) &aDescription,
42 const Handle(StepBasic_Group) &aRelatingGroup,
43 const Handle(StepBasic_Group) &aRelatedGroup)
48 defDescription = hasDescription;
50 theDescription = aDescription;
52 else theDescription.Nullify();
54 theRelatingGroup = aRelatingGroup;
56 theRelatedGroup = aRelatedGroup;
59 //=======================================================================
62 //=======================================================================
64 Handle(TCollection_HAsciiString) StepBasic_GroupRelationship::Name () const
69 //=======================================================================
72 //=======================================================================
74 void StepBasic_GroupRelationship::SetName (const Handle(TCollection_HAsciiString) &aName)
79 //=======================================================================
80 //function : Description
82 //=======================================================================
84 Handle(TCollection_HAsciiString) StepBasic_GroupRelationship::Description () const
86 return theDescription;
89 //=======================================================================
90 //function : SetDescription
92 //=======================================================================
94 void StepBasic_GroupRelationship::SetDescription (const Handle(TCollection_HAsciiString) &aDescription)
96 theDescription = aDescription;
99 //=======================================================================
100 //function : HasDescription
102 //=======================================================================
104 Standard_Boolean StepBasic_GroupRelationship::HasDescription () const
106 return defDescription;
109 //=======================================================================
110 //function : RelatingGroup
112 //=======================================================================
114 Handle(StepBasic_Group) StepBasic_GroupRelationship::RelatingGroup () const
116 return theRelatingGroup;
119 //=======================================================================
120 //function : SetRelatingGroup
122 //=======================================================================
124 void StepBasic_GroupRelationship::SetRelatingGroup (const Handle(StepBasic_Group) &aRelatingGroup)
126 theRelatingGroup = aRelatingGroup;
129 //=======================================================================
130 //function : RelatedGroup
132 //=======================================================================
134 Handle(StepBasic_Group) StepBasic_GroupRelationship::RelatedGroup () const
136 return theRelatedGroup;
139 //=======================================================================
140 //function : SetRelatedGroup
142 //=======================================================================
144 void StepBasic_GroupRelationship::SetRelatedGroup (const Handle(StepBasic_Group) &aRelatedGroup)
146 theRelatedGroup = aRelatedGroup;