b311480e |
1 | // Created on: 2000-05-11 |
2 | // Created by: data exchange team |
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 | |
18 | #include <StepBasic_CharacterizedObject.ixx> |
19 | #include <TCollection_HAsciiString.hxx> |
20 | //======================================================================= |
21 | //function : StepBasic_CharacterizedObject |
22 | //purpose : |
23 | //======================================================================= |
24 | |
25 | StepBasic_CharacterizedObject::StepBasic_CharacterizedObject () |
26 | { |
27 | defDescription = Standard_False; |
28 | } |
29 | |
30 | //======================================================================= |
31 | //function : Init |
32 | //purpose : |
33 | //======================================================================= |
34 | |
35 | void StepBasic_CharacterizedObject::Init (const Handle(TCollection_HAsciiString) &aName, |
36 | const Standard_Boolean hasDescription, |
37 | const Handle(TCollection_HAsciiString) &aDescription) |
38 | { |
39 | theName = aName; |
40 | |
41 | defDescription = hasDescription; |
42 | if (defDescription) { |
43 | theDescription = aDescription; |
44 | } |
45 | else theDescription.Nullify(); |
46 | } |
47 | |
48 | //======================================================================= |
49 | //function : Name |
50 | //purpose : |
51 | //======================================================================= |
52 | |
53 | Handle(TCollection_HAsciiString) StepBasic_CharacterizedObject::Name () const |
54 | { |
55 | return theName; |
56 | } |
57 | |
58 | //======================================================================= |
59 | //function : SetName |
60 | //purpose : |
61 | //======================================================================= |
62 | |
63 | void StepBasic_CharacterizedObject::SetName (const Handle(TCollection_HAsciiString) &aName) |
64 | { |
65 | theName = aName; |
66 | } |
67 | |
68 | //======================================================================= |
69 | //function : Description |
70 | //purpose : |
71 | //======================================================================= |
72 | |
73 | Handle(TCollection_HAsciiString) StepBasic_CharacterizedObject::Description () const |
74 | { |
75 | return theDescription; |
76 | } |
77 | |
78 | //======================================================================= |
79 | //function : SetDescription |
80 | //purpose : |
81 | //======================================================================= |
82 | |
83 | void StepBasic_CharacterizedObject::SetDescription (const Handle(TCollection_HAsciiString) &aDescription) |
84 | { |
85 | theDescription = aDescription; |
86 | } |
87 | |
88 | //======================================================================= |
89 | //function : HasDescription |
90 | //purpose : |
91 | //======================================================================= |
92 | |
93 | Standard_Boolean StepBasic_CharacterizedObject::HasDescription () const |
94 | { |
95 | return defDescription; |
96 | } |