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.
15 #include <Standard_Type.hxx>
16 #include <StepData_Field.hxx>
17 #include <StepData_SelectNamed.hxx>
19 // Definitions reprises de Field :
27 StepData_SelectNamed::StepData_SelectNamed ()
28 { theval.Clear(); thename.Clear(); }
31 Standard_Boolean StepData_SelectNamed::HasName () const
32 { return (thename.Length() > 0); }
34 Standard_CString StepData_SelectNamed::Name () const
35 { return thename.ToCString(); }
37 Standard_Boolean StepData_SelectNamed::SetName (const Standard_CString name)
38 { thename.Clear(); thename.AssignCat (name); return Standard_True; }
40 const StepData_Field& StepData_SelectNamed::Field () const
43 StepData_Field& StepData_SelectNamed::CField ()
47 Standard_Integer StepData_SelectNamed::Kind () const
48 { return theval.Kind(); }
50 void StepData_SelectNamed::SetKind (const Standard_Integer kind)
51 { theval.Clear (kind); }
53 Standard_Integer StepData_SelectNamed::Int () const
54 { return theval.Int(); }
56 void StepData_SelectNamed::SetInt (const Standard_Integer val)
57 { theval.SetInt (val); }
59 Standard_Real StepData_SelectNamed::Real () const
60 { return theval.Real(); }
62 void StepData_SelectNamed::SetReal (const Standard_Real val)
63 { theval.SetReal (val); }
65 Standard_CString StepData_SelectNamed::String () const
66 { return theval.String(); }
68 void StepData_SelectNamed::SetString (const Standard_CString val)
69 { theval.SetString (val); }