Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:05:06

0001 // Created on: 1996-12-16
0002 // Created by: Christian CAILLET
0003 // Copyright (c) 1996-1999 Matra Datavision
0004 // Copyright (c) 1999-2014 OPEN CASCADE SAS
0005 //
0006 // This file is part of Open CASCADE Technology software library.
0007 //
0008 // This library is free software; you can redistribute it and/or modify it under
0009 // the terms of the GNU Lesser General Public License version 2.1 as published
0010 // by the Free Software Foundation, with special exception defined in the file
0011 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0012 // distribution for complete text of the license and disclaimer of any warranty.
0013 //
0014 // Alternatively, this file may be used under the terms of Open CASCADE
0015 // commercial license or contractual agreement.
0016 
0017 #ifndef _StepData_SelectNamed_HeaderFile
0018 #define _StepData_SelectNamed_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 
0022 #include <TCollection_AsciiString.hxx>
0023 #include <StepData_Field.hxx>
0024 #include <StepData_SelectMember.hxx>
0025 #include <Standard_CString.hxx>
0026 #include <Standard_Integer.hxx>
0027 #include <Standard_Real.hxx>
0028 
0029 
0030 class StepData_SelectNamed;
0031 DEFINE_STANDARD_HANDLE(StepData_SelectNamed, StepData_SelectMember)
0032 
0033 //! This select member can be of any kind, and be named
0034 //! But its takes more memory than some specialised ones
0035 //! This class allows one name for the instance
0036 class StepData_SelectNamed : public StepData_SelectMember
0037 {
0038 
0039 public:
0040 
0041   
0042   Standard_EXPORT StepData_SelectNamed();
0043   
0044   Standard_EXPORT virtual Standard_Boolean HasName() const Standard_OVERRIDE;
0045   
0046   Standard_EXPORT virtual Standard_CString Name() const Standard_OVERRIDE;
0047   
0048   Standard_EXPORT virtual Standard_Boolean SetName (const Standard_CString name) Standard_OVERRIDE;
0049   
0050   Standard_EXPORT const StepData_Field& Field() const;
0051   
0052   Standard_EXPORT StepData_Field& CField();
0053   
0054   Standard_EXPORT virtual Standard_Integer Kind() const Standard_OVERRIDE;
0055   
0056   Standard_EXPORT virtual void SetKind (const Standard_Integer kind) Standard_OVERRIDE;
0057   
0058   //! This internal method gives access to a value implemented by an
0059   //! Integer (to read it)
0060   Standard_EXPORT virtual Standard_Integer Int() const Standard_OVERRIDE;
0061   
0062   //! This internal method gives access to a value implemented by an
0063   //! Integer (to set it)
0064   Standard_EXPORT virtual void SetInt (const Standard_Integer val) Standard_OVERRIDE;
0065   
0066   Standard_EXPORT virtual Standard_Real Real() const Standard_OVERRIDE;
0067   
0068   Standard_EXPORT virtual void SetReal (const Standard_Real val) Standard_OVERRIDE;
0069   
0070   Standard_EXPORT virtual Standard_CString String() const Standard_OVERRIDE;
0071   
0072   Standard_EXPORT virtual void SetString (const Standard_CString val) Standard_OVERRIDE;
0073 
0074 
0075 
0076 
0077   DEFINE_STANDARD_RTTIEXT(StepData_SelectNamed,StepData_SelectMember)
0078 
0079 protected:
0080 
0081 
0082 
0083 
0084 private:
0085 
0086 
0087   TCollection_AsciiString thename;
0088   StepData_Field theval;
0089 
0090 
0091 };
0092 
0093 
0094 
0095 
0096 
0097 
0098 
0099 #endif // _StepData_SelectNamed_HeaderFile