1 // Created on: 2002-12-12
2 // Created by: data exchange team
3 // Copyright (c) 2002-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.2
18 #include <Standard_Type.hxx>
19 #include <StepRepr_PropertyDefinition.hxx>
20 #include <StepRepr_PropertyDefinitionRelationship.hxx>
21 #include <TCollection_HAsciiString.hxx>
23 IMPLEMENT_STANDARD_RTTIEXT(StepRepr_PropertyDefinitionRelationship,Standard_Transient)
25 //=======================================================================
26 //function : StepRepr_PropertyDefinitionRelationship
28 //=======================================================================
29 StepRepr_PropertyDefinitionRelationship::StepRepr_PropertyDefinitionRelationship ()
33 //=======================================================================
36 //=======================================================================
38 void StepRepr_PropertyDefinitionRelationship::Init (const Handle(TCollection_HAsciiString) &aName,
39 const Handle(TCollection_HAsciiString) &aDescription,
40 const Handle(StepRepr_PropertyDefinition) &aRelatingPropertyDefinition,
41 const Handle(StepRepr_PropertyDefinition) &aRelatedPropertyDefinition)
46 theDescription = aDescription;
48 theRelatingPropertyDefinition = aRelatingPropertyDefinition;
50 theRelatedPropertyDefinition = aRelatedPropertyDefinition;
53 //=======================================================================
56 //=======================================================================
58 Handle(TCollection_HAsciiString) StepRepr_PropertyDefinitionRelationship::Name () const
63 //=======================================================================
66 //=======================================================================
68 void StepRepr_PropertyDefinitionRelationship::SetName (const Handle(TCollection_HAsciiString) &aName)
73 //=======================================================================
74 //function : Description
76 //=======================================================================
78 Handle(TCollection_HAsciiString) StepRepr_PropertyDefinitionRelationship::Description () const
80 return theDescription;
83 //=======================================================================
84 //function : SetDescription
86 //=======================================================================
88 void StepRepr_PropertyDefinitionRelationship::SetDescription (const Handle(TCollection_HAsciiString) &aDescription)
90 theDescription = aDescription;
93 //=======================================================================
94 //function : RelatingPropertyDefinition
96 //=======================================================================
98 Handle(StepRepr_PropertyDefinition) StepRepr_PropertyDefinitionRelationship::RelatingPropertyDefinition () const
100 return theRelatingPropertyDefinition;
103 //=======================================================================
104 //function : SetRelatingPropertyDefinition
106 //=======================================================================
108 void StepRepr_PropertyDefinitionRelationship::SetRelatingPropertyDefinition (const Handle(StepRepr_PropertyDefinition) &aRelatingPropertyDefinition)
110 theRelatingPropertyDefinition = aRelatingPropertyDefinition;
113 //=======================================================================
114 //function : RelatedPropertyDefinition
116 //=======================================================================
118 Handle(StepRepr_PropertyDefinition) StepRepr_PropertyDefinitionRelationship::RelatedPropertyDefinition () const
120 return theRelatedPropertyDefinition;
123 //=======================================================================
124 //function : SetRelatedPropertyDefinition
126 //=======================================================================
128 void StepRepr_PropertyDefinitionRelationship::SetRelatedPropertyDefinition (const Handle(StepRepr_PropertyDefinition) &aRelatedPropertyDefinition)
130 theRelatedPropertyDefinition = aRelatedPropertyDefinition;