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 <Standard_Type.hxx>
20 #include <StepBasic_Action.hxx>
21 #include <StepBasic_ActionMethod.hxx>
22 #include <TCollection_HAsciiString.hxx>
24 IMPLEMENT_STANDARD_RTTIEXT(StepBasic_Action,Standard_Transient)
26 //=======================================================================
27 //function : StepBasic_Action
29 //=======================================================================
30 StepBasic_Action::StepBasic_Action ()
32 defDescription = Standard_False;
35 //=======================================================================
38 //=======================================================================
40 void StepBasic_Action::Init (const Handle(TCollection_HAsciiString) &aName,
41 const Standard_Boolean hasDescription,
42 const Handle(TCollection_HAsciiString) &aDescription,
43 const Handle(StepBasic_ActionMethod) &aChosenMethod)
48 defDescription = hasDescription;
50 theDescription = aDescription;
52 else theDescription.Nullify();
54 theChosenMethod = aChosenMethod;
57 //=======================================================================
60 //=======================================================================
62 Handle(TCollection_HAsciiString) StepBasic_Action::Name () const
67 //=======================================================================
70 //=======================================================================
72 void StepBasic_Action::SetName (const Handle(TCollection_HAsciiString) &aName)
77 //=======================================================================
78 //function : Description
80 //=======================================================================
82 Handle(TCollection_HAsciiString) StepBasic_Action::Description () const
84 return theDescription;
87 //=======================================================================
88 //function : SetDescription
90 //=======================================================================
92 void StepBasic_Action::SetDescription (const Handle(TCollection_HAsciiString) &aDescription)
94 theDescription = aDescription;
97 //=======================================================================
98 //function : HasDescription
100 //=======================================================================
102 Standard_Boolean StepBasic_Action::HasDescription () const
104 return defDescription;
107 //=======================================================================
108 //function : ChosenMethod
110 //=======================================================================
112 Handle(StepBasic_ActionMethod) StepBasic_Action::ChosenMethod () const
114 return theChosenMethod;
117 //=======================================================================
118 //function : SetChosenMethod
120 //=======================================================================
122 void StepBasic_Action::SetChosenMethod (const Handle(StepBasic_ActionMethod) &aChosenMethod)
124 theChosenMethod = aChosenMethod;