Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/opencascade/StepRepr_RealRepresentationItem.hxx was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 // Copyright (c) 2024 OPEN CASCADE SAS
0002 //
0003 // This file is part of Open CASCADE Technology software library.
0004 //
0005 // This library is free software; you can redistribute it and/or modify it under
0006 // the terms of the GNU Lesser General Public License version 2.1 as published
0007 // by the Free Software Foundation, with special exception defined in the file
0008 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0009 // distribution for complete text of the license and disclaimer of any warranty.
0010 //
0011 // Alternatively, this file may be used under the terms of Open CASCADE
0012 // commercial license or contractual agreement.
0013 
0014 #ifndef _StepRepr_RealRepresentationItem_HeaderFile
0015 #define _StepRepr_RealRepresentationItem_HeaderFile
0016 
0017 #include <Standard.hxx>
0018 #include <Standard_Type.hxx>
0019 
0020 #include <StepRepr_RepresentationItem.hxx>
0021 class TCollection_HAsciiString;
0022 
0023 class StepRepr_RealRepresentationItem;
0024 DEFINE_STANDARD_HANDLE(StepRepr_RealRepresentationItem, StepRepr_RepresentationItem)
0025 
0026 class StepRepr_RealRepresentationItem : public StepRepr_RepresentationItem
0027 {
0028 
0029 public:
0030   //! Returns a RealRepresentationItem
0031   Standard_EXPORT StepRepr_RealRepresentationItem();
0032 
0033   Standard_EXPORT void Init(const Handle(TCollection_HAsciiString)& theName,
0034                             const Standard_Real                     theValue);
0035 
0036   inline void SetValue(const Standard_Real theValue) { value = theValue; }
0037 
0038   inline Standard_Real Value() const { return value; }
0039 
0040   DEFINE_STANDARD_RTTIEXT(StepRepr_RealRepresentationItem, StepRepr_RepresentationItem)
0041 
0042 private:
0043   Standard_Real value;
0044 };
0045 
0046 #endif // _StepRepr_RealRepresentationItem_HeaderFile