0027047: STEP -- eliminate useless polymorhic methods Init()
[occt.git] / src / StepRepr / StepRepr_PropertyDefinitionRelationship.cxx
1 // Created on: 2002-12-12
2 // Created by: data exchange team
3 // Copyright (c) 2002-2014 OPEN CASCADE SAS
4 //
5 // This file is part of Open CASCADE Technology software library.
6 //
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.
12 //
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
15
16 // Generator:   ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
17
18 #include <Standard_Type.hxx>
19 #include <StepRepr_PropertyDefinition.hxx>
20 #include <StepRepr_PropertyDefinitionRelationship.hxx>
21 #include <TCollection_HAsciiString.hxx>
22
23 IMPLEMENT_STANDARD_RTTIEXT(StepRepr_PropertyDefinitionRelationship,MMgt_TShared)
24
25 //=======================================================================
26 //function : StepRepr_PropertyDefinitionRelationship
27 //purpose  : 
28 //=======================================================================
29 StepRepr_PropertyDefinitionRelationship::StepRepr_PropertyDefinitionRelationship ()
30 {
31 }
32
33 //=======================================================================
34 //function : Init
35 //purpose  : 
36 //=======================================================================
37
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)
42 {
43
44   theName = aName;
45
46   theDescription = aDescription;
47
48   theRelatingPropertyDefinition = aRelatingPropertyDefinition;
49
50   theRelatedPropertyDefinition = aRelatedPropertyDefinition;
51 }
52
53 //=======================================================================
54 //function : Name
55 //purpose  : 
56 //=======================================================================
57
58 Handle(TCollection_HAsciiString) StepRepr_PropertyDefinitionRelationship::Name () const
59 {
60   return theName;
61 }
62
63 //=======================================================================
64 //function : SetName
65 //purpose  : 
66 //=======================================================================
67
68 void StepRepr_PropertyDefinitionRelationship::SetName (const Handle(TCollection_HAsciiString) &aName)
69 {
70   theName = aName;
71 }
72
73 //=======================================================================
74 //function : Description
75 //purpose  : 
76 //=======================================================================
77
78 Handle(TCollection_HAsciiString) StepRepr_PropertyDefinitionRelationship::Description () const
79 {
80   return theDescription;
81 }
82
83 //=======================================================================
84 //function : SetDescription
85 //purpose  : 
86 //=======================================================================
87
88 void StepRepr_PropertyDefinitionRelationship::SetDescription (const Handle(TCollection_HAsciiString) &aDescription)
89 {
90   theDescription = aDescription;
91 }
92
93 //=======================================================================
94 //function : RelatingPropertyDefinition
95 //purpose  : 
96 //=======================================================================
97
98 Handle(StepRepr_PropertyDefinition) StepRepr_PropertyDefinitionRelationship::RelatingPropertyDefinition () const
99 {
100   return theRelatingPropertyDefinition;
101 }
102
103 //=======================================================================
104 //function : SetRelatingPropertyDefinition
105 //purpose  : 
106 //=======================================================================
107
108 void StepRepr_PropertyDefinitionRelationship::SetRelatingPropertyDefinition (const Handle(StepRepr_PropertyDefinition) &aRelatingPropertyDefinition)
109 {
110   theRelatingPropertyDefinition = aRelatingPropertyDefinition;
111 }
112
113 //=======================================================================
114 //function : RelatedPropertyDefinition
115 //purpose  : 
116 //=======================================================================
117
118 Handle(StepRepr_PropertyDefinition) StepRepr_PropertyDefinitionRelationship::RelatedPropertyDefinition () const
119 {
120   return theRelatedPropertyDefinition;
121 }
122
123 //=======================================================================
124 //function : SetRelatedPropertyDefinition
125 //purpose  : 
126 //=======================================================================
127
128 void StepRepr_PropertyDefinitionRelationship::SetRelatedPropertyDefinition (const Handle(StepRepr_PropertyDefinition) &aRelatedPropertyDefinition)
129 {
130   theRelatedPropertyDefinition = aRelatedPropertyDefinition;
131 }