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
6 // This file is part of Open CASCADE Technology software library.
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.
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
17 // Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.0
19 #include <StepBasic_Action.ixx>
21 //=======================================================================
22 //function : StepBasic_Action
24 //=======================================================================
26 StepBasic_Action::StepBasic_Action ()
28 defDescription = Standard_False;
31 //=======================================================================
34 //=======================================================================
36 void StepBasic_Action::Init (const Handle(TCollection_HAsciiString) &aName,
37 const Standard_Boolean hasDescription,
38 const Handle(TCollection_HAsciiString) &aDescription,
39 const Handle(StepBasic_ActionMethod) &aChosenMethod)
44 defDescription = hasDescription;
46 theDescription = aDescription;
48 else theDescription.Nullify();
50 theChosenMethod = aChosenMethod;
53 //=======================================================================
56 //=======================================================================
58 Handle(TCollection_HAsciiString) StepBasic_Action::Name () const
63 //=======================================================================
66 //=======================================================================
68 void StepBasic_Action::SetName (const Handle(TCollection_HAsciiString) &aName)
73 //=======================================================================
74 //function : Description
76 //=======================================================================
78 Handle(TCollection_HAsciiString) StepBasic_Action::Description () const
80 return theDescription;
83 //=======================================================================
84 //function : SetDescription
86 //=======================================================================
88 void StepBasic_Action::SetDescription (const Handle(TCollection_HAsciiString) &aDescription)
90 theDescription = aDescription;
93 //=======================================================================
94 //function : HasDescription
96 //=======================================================================
98 Standard_Boolean StepBasic_Action::HasDescription () const
100 return defDescription;
103 //=======================================================================
104 //function : ChosenMethod
106 //=======================================================================
108 Handle(StepBasic_ActionMethod) StepBasic_Action::ChosenMethod () const
110 return theChosenMethod;
113 //=======================================================================
114 //function : SetChosenMethod
116 //=======================================================================
118 void StepBasic_Action::SetChosenMethod (const Handle(StepBasic_ActionMethod) &aChosenMethod)
120 theChosenMethod = aChosenMethod;