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 | |
42cf5bc1 |
18 | #include <Standard_Type.hxx> |
19 | #include <StepBasic_Document.hxx> |
20 | #include <StepBasic_DocumentType.hxx> |
21 | #include <TCollection_HAsciiString.hxx> |
7fd59977 |
22 | |
25e59720 |
23 | IMPLEMENT_STANDARD_RTTIEXT(StepBasic_Document,Standard_Transient) |
92efcf78 |
24 | |
7fd59977 |
25 | //======================================================================= |
26 | //function : StepBasic_Document |
27 | //purpose : |
28 | //======================================================================= |
7fd59977 |
29 | StepBasic_Document::StepBasic_Document () |
30 | { |
31 | defDescription = Standard_False; |
32 | } |
33 | |
34 | //======================================================================= |
35 | //function : Init |
36 | //purpose : |
37 | //======================================================================= |
38 | |
39 | void StepBasic_Document::Init (const Handle(TCollection_HAsciiString) &aId, |
40 | const Handle(TCollection_HAsciiString) &aName, |
41 | const Standard_Boolean hasDescription, |
42 | const Handle(TCollection_HAsciiString) &aDescription, |
43 | const Handle(StepBasic_DocumentType) &aKind) |
44 | { |
45 | |
46 | theId = aId; |
47 | |
48 | theName = aName; |
49 | |
50 | defDescription = hasDescription; |
51 | if (defDescription) { |
52 | theDescription = aDescription; |
53 | } |
54 | else theDescription.Nullify(); |
55 | |
56 | theKind = aKind; |
57 | } |
58 | |
59 | //======================================================================= |
60 | //function : Id |
61 | //purpose : |
62 | //======================================================================= |
63 | |
64 | Handle(TCollection_HAsciiString) StepBasic_Document::Id () const |
65 | { |
66 | return theId; |
67 | } |
68 | |
69 | //======================================================================= |
70 | //function : SetId |
71 | //purpose : |
72 | //======================================================================= |
73 | |
74 | void StepBasic_Document::SetId (const Handle(TCollection_HAsciiString) &aId) |
75 | { |
76 | theId = aId; |
77 | } |
78 | |
79 | //======================================================================= |
80 | //function : Name |
81 | //purpose : |
82 | //======================================================================= |
83 | |
84 | Handle(TCollection_HAsciiString) StepBasic_Document::Name () const |
85 | { |
86 | return theName; |
87 | } |
88 | |
89 | //======================================================================= |
90 | //function : SetName |
91 | //purpose : |
92 | //======================================================================= |
93 | |
94 | void StepBasic_Document::SetName (const Handle(TCollection_HAsciiString) &aName) |
95 | { |
96 | theName = aName; |
97 | } |
98 | |
99 | //======================================================================= |
100 | //function : Description |
101 | //purpose : |
102 | //======================================================================= |
103 | |
104 | Handle(TCollection_HAsciiString) StepBasic_Document::Description () const |
105 | { |
106 | return theDescription; |
107 | } |
108 | |
109 | //======================================================================= |
110 | //function : SetDescription |
111 | //purpose : |
112 | //======================================================================= |
113 | |
114 | void StepBasic_Document::SetDescription (const Handle(TCollection_HAsciiString) &aDescription) |
115 | { |
116 | theDescription = aDescription; |
117 | } |
118 | |
119 | //======================================================================= |
120 | //function : HasDescription |
121 | //purpose : |
122 | //======================================================================= |
123 | |
124 | Standard_Boolean StepBasic_Document::HasDescription () const |
125 | { |
126 | return defDescription; |
127 | } |
128 | |
129 | //======================================================================= |
130 | //function : Kind |
131 | //purpose : |
132 | //======================================================================= |
133 | |
134 | Handle(StepBasic_DocumentType) StepBasic_Document::Kind () const |
135 | { |
136 | return theKind; |
137 | } |
138 | |
139 | //======================================================================= |
140 | //function : SetKind |
141 | //purpose : |
142 | //======================================================================= |
143 | |
144 | void StepBasic_Document::SetKind (const Handle(StepBasic_DocumentType) &aKind) |
145 | { |
146 | theKind = aKind; |
147 | } |