1 // Copyright (c) 1999-2014 OPEN CASCADE SAS
3 // This file is part of Open CASCADE Technology software library.
5 // This library is free software; you can redistribute it and/or modify it under
6 // the terms of the GNU Lesser General Public License version 2.1 as published
7 // by the Free Software Foundation, with special exception defined in the file
8 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
9 // distribution for complete text of the license and disclaimer of any warranty.
11 // Alternatively, this file may be used under the terms of Open CASCADE
12 // commercial license or contractual agreement.
14 #include <StepData_SelectNamed.ixx>
16 // Definitions reprises de Field :
24 StepData_SelectNamed::StepData_SelectNamed ()
25 { theval.Clear(); thename.Clear(); }
28 Standard_Boolean StepData_SelectNamed::HasName () const
29 { return (thename.Length() > 0); }
31 Standard_CString StepData_SelectNamed::Name () const
32 { return thename.ToCString(); }
34 Standard_Boolean StepData_SelectNamed::SetName (const Standard_CString name)
35 { thename.Clear(); thename.AssignCat (name); return Standard_True; }
37 const StepData_Field& StepData_SelectNamed::Field () const
40 StepData_Field& StepData_SelectNamed::CField ()
44 Standard_Integer StepData_SelectNamed::Kind () const
45 { return theval.Kind(); }
47 void StepData_SelectNamed::SetKind (const Standard_Integer kind)
48 { theval.Clear (kind); }
50 Standard_Integer StepData_SelectNamed::Int () const
51 { return theval.Int(); }
53 void StepData_SelectNamed::SetInt (const Standard_Integer val)
54 { theval.SetInt (val); }
56 Standard_Real StepData_SelectNamed::Real () const
57 { return theval.Real(); }
59 void StepData_SelectNamed::SetReal (const Standard_Real val)
60 { theval.SetReal (val); }
62 Standard_CString StepData_SelectNamed::String () const
63 { return theval.String(); }
65 void StepData_SelectNamed::SetString (const Standard_CString val)
66 { theval.SetString (val); }