b311480e |
1 | // Created on: 2000-07-03 |
2 | // Created by: Andrey BETENEV |
973c2be1 |
3 | // Copyright (c) 2000-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.1 |
7fd59977 |
17 | |
42cf5bc1 |
18 | #include <Standard_Type.hxx> |
19 | #include <StepRepr_CharacterizedDefinition.hxx> |
20 | #include <StepRepr_PropertyDefinition.hxx> |
21 | #include <TCollection_HAsciiString.hxx> |
7fd59977 |
22 | |
25e59720 |
23 | IMPLEMENT_STANDARD_RTTIEXT(StepRepr_PropertyDefinition,Standard_Transient) |
92efcf78 |
24 | |
7fd59977 |
25 | //======================================================================= |
26 | //function : StepRepr_PropertyDefinition |
27 | //purpose : |
28 | //======================================================================= |
7fd59977 |
29 | StepRepr_PropertyDefinition::StepRepr_PropertyDefinition () |
30 | { |
31 | defDescription = Standard_False; |
32 | } |
33 | |
34 | //======================================================================= |
35 | //function : Init |
36 | //purpose : |
37 | //======================================================================= |
38 | |
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) |
43 | { |
44 | |
45 | theName = aName; |
46 | |
47 | defDescription = hasDescription; |
48 | if (defDescription) { |
49 | theDescription = aDescription; |
50 | } |
51 | else theDescription.Nullify(); |
52 | |
53 | theDefinition = aDefinition; |
54 | } |
55 | |
56 | //======================================================================= |
57 | //function : Name |
58 | //purpose : |
59 | //======================================================================= |
60 | |
61 | Handle(TCollection_HAsciiString) StepRepr_PropertyDefinition::Name () const |
62 | { |
63 | return theName; |
64 | } |
65 | |
66 | //======================================================================= |
67 | //function : SetName |
68 | //purpose : |
69 | //======================================================================= |
70 | |
71 | void StepRepr_PropertyDefinition::SetName (const Handle(TCollection_HAsciiString) &aName) |
72 | { |
73 | theName = aName; |
74 | } |
75 | |
76 | //======================================================================= |
77 | //function : Description |
78 | //purpose : |
79 | //======================================================================= |
80 | |
81 | Handle(TCollection_HAsciiString) StepRepr_PropertyDefinition::Description () const |
82 | { |
83 | return theDescription; |
84 | } |
85 | |
86 | //======================================================================= |
87 | //function : SetDescription |
88 | //purpose : |
89 | //======================================================================= |
90 | |
91 | void StepRepr_PropertyDefinition::SetDescription (const Handle(TCollection_HAsciiString) &aDescription) |
92 | { |
93 | theDescription = aDescription; |
94 | } |
95 | |
96 | //======================================================================= |
97 | //function : HasDescription |
98 | //purpose : |
99 | //======================================================================= |
100 | |
101 | Standard_Boolean StepRepr_PropertyDefinition::HasDescription () const |
102 | { |
103 | return defDescription; |
104 | } |
105 | |
106 | //======================================================================= |
107 | //function : Definition |
108 | //purpose : |
109 | //======================================================================= |
110 | |
111 | StepRepr_CharacterizedDefinition StepRepr_PropertyDefinition::Definition () const |
112 | { |
113 | return theDefinition; |
114 | } |
115 | |
116 | //======================================================================= |
117 | //function : SetDefinition |
118 | //purpose : |
119 | //======================================================================= |
120 | |
121 | void StepRepr_PropertyDefinition::SetDefinition (const StepRepr_CharacterizedDefinition &aDefinition) |
122 | { |
123 | theDefinition = aDefinition; |
124 | } |