b311480e |
1 | // Created on: 1999-11-26 |
2 | // Created by: Andrey BETENEV |
3 | // Copyright (c) 1999 Matra Datavision |
973c2be1 |
4 | // Copyright (c) 1999-2014 OPEN CASCADE SAS |
b311480e |
5 | // |
973c2be1 |
6 | // This file is part of Open CASCADE Technology software library. |
b311480e |
7 | // |
d5f74e42 |
8 | // This library is free software; you can redistribute it and/or modify it under |
9 | // the terms of the GNU Lesser General Public License version 2.1 as published |
973c2be1 |
10 | // by the Free Software Foundation, with special exception defined in the file |
11 | // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT |
12 | // distribution for complete text of the license and disclaimer of any warranty. |
b311480e |
13 | // |
973c2be1 |
14 | // Alternatively, this file may be used under the terms of Open CASCADE |
15 | // commercial license or contractual agreement. |
b311480e |
16 | |
7fd59977 |
17 | // Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.0 |
7fd59977 |
18 | |
19 | #include <StepBasic_VersionedActionRequest.ixx> |
20 | |
21 | //======================================================================= |
22 | //function : StepBasic_VersionedActionRequest |
23 | //purpose : |
24 | //======================================================================= |
25 | |
26 | StepBasic_VersionedActionRequest::StepBasic_VersionedActionRequest () |
27 | { |
28 | defDescription = Standard_False; |
29 | } |
30 | |
31 | //======================================================================= |
32 | //function : Init |
33 | //purpose : |
34 | //======================================================================= |
35 | |
36 | void StepBasic_VersionedActionRequest::Init (const Handle(TCollection_HAsciiString) &aId, |
37 | const Handle(TCollection_HAsciiString) &aVersion, |
38 | const Handle(TCollection_HAsciiString) &aPurpose, |
39 | const Standard_Boolean hasDescription, |
40 | const Handle(TCollection_HAsciiString) &aDescription) |
41 | { |
42 | |
43 | theId = aId; |
44 | |
45 | theVersion = aVersion; |
46 | |
47 | thePurpose = aPurpose; |
48 | |
49 | defDescription = hasDescription; |
50 | if (defDescription) { |
51 | theDescription = aDescription; |
52 | } |
53 | else theDescription.Nullify(); |
54 | } |
55 | |
56 | //======================================================================= |
57 | //function : Id |
58 | //purpose : |
59 | //======================================================================= |
60 | |
61 | Handle(TCollection_HAsciiString) StepBasic_VersionedActionRequest::Id () const |
62 | { |
63 | return theId; |
64 | } |
65 | |
66 | //======================================================================= |
67 | //function : SetId |
68 | //purpose : |
69 | //======================================================================= |
70 | |
71 | void StepBasic_VersionedActionRequest::SetId (const Handle(TCollection_HAsciiString) &aId) |
72 | { |
73 | theId = aId; |
74 | } |
75 | |
76 | //======================================================================= |
77 | //function : Version |
78 | //purpose : |
79 | //======================================================================= |
80 | |
81 | Handle(TCollection_HAsciiString) StepBasic_VersionedActionRequest::Version () const |
82 | { |
83 | return theVersion; |
84 | } |
85 | |
86 | //======================================================================= |
87 | //function : SetVersion |
88 | //purpose : |
89 | //======================================================================= |
90 | |
91 | void StepBasic_VersionedActionRequest::SetVersion (const Handle(TCollection_HAsciiString) &aVersion) |
92 | { |
93 | theVersion = aVersion; |
94 | } |
95 | |
96 | //======================================================================= |
97 | //function : Purpose |
98 | //purpose : |
99 | //======================================================================= |
100 | |
101 | Handle(TCollection_HAsciiString) StepBasic_VersionedActionRequest::Purpose () const |
102 | { |
103 | return thePurpose; |
104 | } |
105 | |
106 | //======================================================================= |
107 | //function : SetPurpose |
108 | //purpose : |
109 | //======================================================================= |
110 | |
111 | void StepBasic_VersionedActionRequest::SetPurpose (const Handle(TCollection_HAsciiString) &aPurpose) |
112 | { |
113 | thePurpose = aPurpose; |
114 | } |
115 | |
116 | //======================================================================= |
117 | //function : Description |
118 | //purpose : |
119 | //======================================================================= |
120 | |
121 | Handle(TCollection_HAsciiString) StepBasic_VersionedActionRequest::Description () const |
122 | { |
123 | return theDescription; |
124 | } |
125 | |
126 | //======================================================================= |
127 | //function : SetDescription |
128 | //purpose : |
129 | //======================================================================= |
130 | |
131 | void StepBasic_VersionedActionRequest::SetDescription (const Handle(TCollection_HAsciiString) &aDescription) |
132 | { |
133 | theDescription = aDescription; |
134 | } |
135 | |
136 | //======================================================================= |
137 | //function : HasDescription |
138 | //purpose : |
139 | //======================================================================= |
140 | |
141 | Standard_Boolean StepBasic_VersionedActionRequest::HasDescription () const |
142 | { |
143 | return defDescription; |
144 | } |