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