0024530: TKMesh - remove unused package IntPoly
[occt.git] / src / StepData / StepData_SelectNamed.cxx
CommitLineData
973c2be1 1// Copyright (c) 1999-2014 OPEN CASCADE SAS
b311480e 2//
973c2be1 3// This file is part of Open CASCADE Technology software library.
b311480e 4//
973c2be1 5// This library is free software; you can redistribute it and / or modify it
6// under the terms of the GNU Lesser General Public 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.
b311480e 10//
973c2be1 11// Alternatively, this file may be used under the terms of Open CASCADE
12// commercial license or contractual agreement.
b311480e 13
7fd59977 14#include <StepData_SelectNamed.ixx>
15
16// Definitions reprises de Field :
17#define KindInteger 1
18#define KindBoolean 2
19#define KindLogical 3
20#define KindEnum 4
21#define KindReal 5
22#define KindString 6
23
b311480e 24StepData_SelectNamed::StepData_SelectNamed ()
7fd59977 25 { theval.Clear(); thename.Clear(); }
26
27
28 Standard_Boolean StepData_SelectNamed::HasName () const
29 { return (thename.Length() > 0); }
30
31 Standard_CString StepData_SelectNamed::Name () const
32 { return thename.ToCString(); }
33
34 Standard_Boolean StepData_SelectNamed::SetName (const Standard_CString name)
35 { thename.Clear(); thename.AssignCat (name); return Standard_True; }
36
37 const StepData_Field& StepData_SelectNamed::Field () const
38 { return theval; }
39
40 StepData_Field& StepData_SelectNamed::CField ()
41 { return theval; }
42
43
44 Standard_Integer StepData_SelectNamed::Kind () const
45 { return theval.Kind(); }
46
47 void StepData_SelectNamed::SetKind (const Standard_Integer kind)
48 { theval.Clear (kind); }
49
50 Standard_Integer StepData_SelectNamed::Int () const
51 { return theval.Int(); }
52
53 void StepData_SelectNamed::SetInt (const Standard_Integer val)
54 { theval.SetInt (val); }
55
56 Standard_Real StepData_SelectNamed::Real () const
57 { return theval.Real(); }
58
59 void StepData_SelectNamed::SetReal (const Standard_Real val)
60 { theval.SetReal (val); }
61
62 Standard_CString StepData_SelectNamed::String () const
63 { return theval.String(); }
64
65 void StepData_SelectNamed::SetString (const Standard_CString val)
66 { theval.SetString (val); }