7fd59977 |
1 | // File: StepRepr_PropertyDefinition.cxx |
2 | // Created: Mon Jul 3 16:29:03 2000 |
3 | // Author: Andrey BETENEV |
4 | // Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.1 |
5 | // Copyright: Matra Datavision 2000 |
6 | |
7 | #include <StepRepr_PropertyDefinition.ixx> |
8 | |
9 | //======================================================================= |
10 | //function : StepRepr_PropertyDefinition |
11 | //purpose : |
12 | //======================================================================= |
13 | |
14 | StepRepr_PropertyDefinition::StepRepr_PropertyDefinition () |
15 | { |
16 | defDescription = Standard_False; |
17 | } |
18 | |
19 | //======================================================================= |
20 | //function : Init |
21 | //purpose : |
22 | //======================================================================= |
23 | |
24 | void StepRepr_PropertyDefinition::Init (const Handle(TCollection_HAsciiString) &aName, |
25 | const Standard_Boolean hasDescription, |
26 | const Handle(TCollection_HAsciiString) &aDescription, |
27 | const StepRepr_CharacterizedDefinition &aDefinition) |
28 | { |
29 | |
30 | theName = aName; |
31 | |
32 | defDescription = hasDescription; |
33 | if (defDescription) { |
34 | theDescription = aDescription; |
35 | } |
36 | else theDescription.Nullify(); |
37 | |
38 | theDefinition = aDefinition; |
39 | } |
40 | |
41 | //======================================================================= |
42 | //function : Name |
43 | //purpose : |
44 | //======================================================================= |
45 | |
46 | Handle(TCollection_HAsciiString) StepRepr_PropertyDefinition::Name () const |
47 | { |
48 | return theName; |
49 | } |
50 | |
51 | //======================================================================= |
52 | //function : SetName |
53 | //purpose : |
54 | //======================================================================= |
55 | |
56 | void StepRepr_PropertyDefinition::SetName (const Handle(TCollection_HAsciiString) &aName) |
57 | { |
58 | theName = aName; |
59 | } |
60 | |
61 | //======================================================================= |
62 | //function : Description |
63 | //purpose : |
64 | //======================================================================= |
65 | |
66 | Handle(TCollection_HAsciiString) StepRepr_PropertyDefinition::Description () const |
67 | { |
68 | return theDescription; |
69 | } |
70 | |
71 | //======================================================================= |
72 | //function : SetDescription |
73 | //purpose : |
74 | //======================================================================= |
75 | |
76 | void StepRepr_PropertyDefinition::SetDescription (const Handle(TCollection_HAsciiString) &aDescription) |
77 | { |
78 | theDescription = aDescription; |
79 | } |
80 | |
81 | //======================================================================= |
82 | //function : HasDescription |
83 | //purpose : |
84 | //======================================================================= |
85 | |
86 | Standard_Boolean StepRepr_PropertyDefinition::HasDescription () const |
87 | { |
88 | return defDescription; |
89 | } |
90 | |
91 | //======================================================================= |
92 | //function : Definition |
93 | //purpose : |
94 | //======================================================================= |
95 | |
96 | StepRepr_CharacterizedDefinition StepRepr_PropertyDefinition::Definition () const |
97 | { |
98 | return theDefinition; |
99 | } |
100 | |
101 | //======================================================================= |
102 | //function : SetDefinition |
103 | //purpose : |
104 | //======================================================================= |
105 | |
106 | void StepRepr_PropertyDefinition::SetDefinition (const StepRepr_CharacterizedDefinition &aDefinition) |
107 | { |
108 | theDefinition = aDefinition; |
109 | } |