0022048: Visualization, AIS_InteractiveContext - single object selection should alway...
[occt.git] / src / StepBasic / StepBasic_VersionedActionRequest.cxx
1 // Created on: 1999-11-26
2 // Created by: Andrey BETENEV
3 // Copyright (c) 1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
5 //
6 // This file is part of Open CASCADE Technology software library.
7 //
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
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.
13 //
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
16
17 // Generator:   ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.0
18
19 #include <Standard_Type.hxx>
20 #include <StepBasic_VersionedActionRequest.hxx>
21 #include <TCollection_HAsciiString.hxx>
22
23 IMPLEMENT_STANDARD_RTTIEXT(StepBasic_VersionedActionRequest,Standard_Transient)
24
25 //=======================================================================
26 //function : StepBasic_VersionedActionRequest
27 //purpose  : 
28 //=======================================================================
29 StepBasic_VersionedActionRequest::StepBasic_VersionedActionRequest ()
30 {
31   defDescription = Standard_False;
32 }
33
34 //=======================================================================
35 //function : Init
36 //purpose  : 
37 //=======================================================================
38
39 void StepBasic_VersionedActionRequest::Init (const Handle(TCollection_HAsciiString) &aId,
40                                              const Handle(TCollection_HAsciiString) &aVersion,
41                                              const Handle(TCollection_HAsciiString) &aPurpose,
42                                              const Standard_Boolean hasDescription,
43                                              const Handle(TCollection_HAsciiString) &aDescription)
44 {
45
46   theId = aId;
47
48   theVersion = aVersion;
49
50   thePurpose = aPurpose;
51
52   defDescription = hasDescription;
53   if (defDescription) {
54     theDescription = aDescription;
55   }
56   else theDescription.Nullify();
57 }
58
59 //=======================================================================
60 //function : Id
61 //purpose  : 
62 //=======================================================================
63
64 Handle(TCollection_HAsciiString) StepBasic_VersionedActionRequest::Id () const
65 {
66   return theId;
67 }
68
69 //=======================================================================
70 //function : SetId
71 //purpose  : 
72 //=======================================================================
73
74 void StepBasic_VersionedActionRequest::SetId (const Handle(TCollection_HAsciiString) &aId)
75 {
76   theId = aId;
77 }
78
79 //=======================================================================
80 //function : Version
81 //purpose  : 
82 //=======================================================================
83
84 Handle(TCollection_HAsciiString) StepBasic_VersionedActionRequest::Version () const
85 {
86   return theVersion;
87 }
88
89 //=======================================================================
90 //function : SetVersion
91 //purpose  : 
92 //=======================================================================
93
94 void StepBasic_VersionedActionRequest::SetVersion (const Handle(TCollection_HAsciiString) &aVersion)
95 {
96   theVersion = aVersion;
97 }
98
99 //=======================================================================
100 //function : Purpose
101 //purpose  : 
102 //=======================================================================
103
104 Handle(TCollection_HAsciiString) StepBasic_VersionedActionRequest::Purpose () const
105 {
106   return thePurpose;
107 }
108
109 //=======================================================================
110 //function : SetPurpose
111 //purpose  : 
112 //=======================================================================
113
114 void StepBasic_VersionedActionRequest::SetPurpose (const Handle(TCollection_HAsciiString) &aPurpose)
115 {
116   thePurpose = aPurpose;
117 }
118
119 //=======================================================================
120 //function : Description
121 //purpose  : 
122 //=======================================================================
123
124 Handle(TCollection_HAsciiString) StepBasic_VersionedActionRequest::Description () const
125 {
126   return theDescription;
127 }
128
129 //=======================================================================
130 //function : SetDescription
131 //purpose  : 
132 //=======================================================================
133
134 void StepBasic_VersionedActionRequest::SetDescription (const Handle(TCollection_HAsciiString) &aDescription)
135 {
136   theDescription = aDescription;
137 }
138
139 //=======================================================================
140 //function : HasDescription
141 //purpose  : 
142 //=======================================================================
143
144 Standard_Boolean StepBasic_VersionedActionRequest::HasDescription () const
145 {
146   return defDescription;
147 }