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