Integration of OCCT 6.5.0 from SVN
[occt.git] / src / StepBasic / StepBasic_VersionedActionRequest.cxx
1 // File:        StepBasic_VersionedActionRequest.cxx
2 // Created:     Fri Nov 26 16:26:40 1999 
3 // Author:      Andrey BETENEV
4 // Generator:   ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.0
5 // Copyright:   Matra Datavision 1999
6
7 #include <StepBasic_VersionedActionRequest.ixx>
8
9 //=======================================================================
10 //function : StepBasic_VersionedActionRequest
11 //purpose  : 
12 //=======================================================================
13
14 StepBasic_VersionedActionRequest::StepBasic_VersionedActionRequest ()
15 {
16   defDescription = Standard_False;
17 }
18
19 //=======================================================================
20 //function : Init
21 //purpose  : 
22 //=======================================================================
23
24 void StepBasic_VersionedActionRequest::Init (const Handle(TCollection_HAsciiString) &aId,
25                                              const Handle(TCollection_HAsciiString) &aVersion,
26                                              const Handle(TCollection_HAsciiString) &aPurpose,
27                                              const Standard_Boolean hasDescription,
28                                              const Handle(TCollection_HAsciiString) &aDescription)
29 {
30
31   theId = aId;
32
33   theVersion = aVersion;
34
35   thePurpose = aPurpose;
36
37   defDescription = hasDescription;
38   if (defDescription) {
39     theDescription = aDescription;
40   }
41   else theDescription.Nullify();
42 }
43
44 //=======================================================================
45 //function : Id
46 //purpose  : 
47 //=======================================================================
48
49 Handle(TCollection_HAsciiString) StepBasic_VersionedActionRequest::Id () const
50 {
51   return theId;
52 }
53
54 //=======================================================================
55 //function : SetId
56 //purpose  : 
57 //=======================================================================
58
59 void StepBasic_VersionedActionRequest::SetId (const Handle(TCollection_HAsciiString) &aId)
60 {
61   theId = aId;
62 }
63
64 //=======================================================================
65 //function : Version
66 //purpose  : 
67 //=======================================================================
68
69 Handle(TCollection_HAsciiString) StepBasic_VersionedActionRequest::Version () const
70 {
71   return theVersion;
72 }
73
74 //=======================================================================
75 //function : SetVersion
76 //purpose  : 
77 //=======================================================================
78
79 void StepBasic_VersionedActionRequest::SetVersion (const Handle(TCollection_HAsciiString) &aVersion)
80 {
81   theVersion = aVersion;
82 }
83
84 //=======================================================================
85 //function : Purpose
86 //purpose  : 
87 //=======================================================================
88
89 Handle(TCollection_HAsciiString) StepBasic_VersionedActionRequest::Purpose () const
90 {
91   return thePurpose;
92 }
93
94 //=======================================================================
95 //function : SetPurpose
96 //purpose  : 
97 //=======================================================================
98
99 void StepBasic_VersionedActionRequest::SetPurpose (const Handle(TCollection_HAsciiString) &aPurpose)
100 {
101   thePurpose = aPurpose;
102 }
103
104 //=======================================================================
105 //function : Description
106 //purpose  : 
107 //=======================================================================
108
109 Handle(TCollection_HAsciiString) StepBasic_VersionedActionRequest::Description () const
110 {
111   return theDescription;
112 }
113
114 //=======================================================================
115 //function : SetDescription
116 //purpose  : 
117 //=======================================================================
118
119 void StepBasic_VersionedActionRequest::SetDescription (const Handle(TCollection_HAsciiString) &aDescription)
120 {
121   theDescription = aDescription;
122 }
123
124 //=======================================================================
125 //function : HasDescription
126 //purpose  : 
127 //=======================================================================
128
129 Standard_Boolean StepBasic_VersionedActionRequest::HasDescription () const
130 {
131   return defDescription;
132 }