Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-10-02 09:13:58

0001 // Created on: 2015-07-16
0002 // Created by: Irina KRYLOVA
0003 // Copyright (c) 2015 OPEN CASCADE SAS
0004 //
0005 // This file is part of Open CASCADE Technology software library.
0006 //
0007 // This library is free software; you can redistribute it and/or modify it under
0008 // the terms of the GNU Lesser General Public License version 2.1 as published
0009 // by the Free Software Foundation, with special exception defined in the file
0010 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0011 // distribution for complete text of the license and disclaimer of any warranty.
0012 //
0013 // Alternatively, this file may be used under the terms of Open CASCADE
0014 // commercial license or contractual agreement.
0015 
0016 #ifndef _StepDimTol_DatumReferenceModifierWithValue_HeaderFile
0017 #define _StepDimTol_DatumReferenceModifierWithValue_HeaderFile
0018 
0019 #include <Standard.hxx>
0020 #include <Standard_Handle.hxx>
0021 
0022 #include <Standard_Transient.hxx>
0023 #include <Standard_Integer.hxx>
0024 #include <StepBasic_LengthMeasureWithUnit.hxx>
0025 #include <StepDimTol_DatumReferenceModifierType.hxx>
0026 
0027 //! Representation of STEP entity DatumReferenceModifierWithValue
0028 class StepDimTol_DatumReferenceModifierWithValue : public Standard_Transient
0029 {
0030 
0031 public:
0032   //! Empty constructor
0033   Standard_EXPORT StepDimTol_DatumReferenceModifierWithValue();
0034 
0035   //! Initialize all fields (own and inherited)
0036   Standard_EXPORT void Init(const StepDimTol_DatumReferenceModifierType&        theModifierType,
0037                             const occ::handle<StepBasic_LengthMeasureWithUnit>& theModifierValue);
0038 
0039   //! Returns field ModifierType
0040   inline StepDimTol_DatumReferenceModifierType ModifierType() const { return myModifierType; }
0041 
0042   //! Set field ModifierType
0043   inline void SetModifierType(const StepDimTol_DatumReferenceModifierType& theModifierType)
0044   {
0045     myModifierType = theModifierType;
0046   }
0047 
0048   //! Returns field ModifierValue
0049   inline occ::handle<StepBasic_LengthMeasureWithUnit> ModifierValue() { return myModifierValue; }
0050 
0051   //! Set field ModifierValue
0052   inline void SetModifierValue(const occ::handle<StepBasic_LengthMeasureWithUnit>& theModifierValue)
0053   {
0054     myModifierValue = theModifierValue;
0055   }
0056 
0057   DEFINE_STANDARD_RTTIEXT(StepDimTol_DatumReferenceModifierWithValue, Standard_Transient)
0058 
0059 private:
0060   StepDimTol_DatumReferenceModifierType        myModifierType;
0061   occ::handle<StepBasic_LengthMeasureWithUnit> myModifierValue;
0062 };
0063 #endif // _StepDimTol_DatumReferenceModifierWithValue_HeaderFile