Back to home page

EIC code displayed by LXR

 
 

    


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

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_DatumSystem_HeaderFile
0017 #define _StepDimTol_DatumSystem_HeaderFile
0018 
0019 #include <Standard.hxx>
0020 
0021 #include <Standard_Integer.hxx>
0022 #include <StepDimTol_HArray1OfDatumReferenceCompartment.hxx>
0023 
0024 class StepDimTol_DatumSystem;
0025 DEFINE_STANDARD_HANDLE(StepDimTol_DatumSystem, StepRepr_ShapeAspect)
0026 //! Representation of STEP entity DatumSystem
0027 class StepDimTol_DatumSystem : public StepRepr_ShapeAspect
0028 {
0029 
0030 public:
0031   
0032   //! Empty constructor
0033   Standard_EXPORT StepDimTol_DatumSystem();
0034   
0035   //! Initialize all fields (own and inherited)
0036   Standard_EXPORT   void Init (const Handle(TCollection_HAsciiString)& theName,
0037                                const Handle(TCollection_HAsciiString)& theDescription,
0038                                const Handle(StepRepr_ProductDefinitionShape)& theOfShape,
0039                                const StepData_Logical theProductDefinitional,
0040                                const Handle(StepDimTol_HArray1OfDatumReferenceCompartment)& theConstituents);
0041   
0042   //! Returns field Constituents
0043   inline Handle(StepDimTol_HArray1OfDatumReferenceCompartment) Constituents()
0044   {
0045     return myConstituents;
0046   }
0047   
0048   //! Set field Constituents
0049   inline void SetConstituents(const Handle(StepDimTol_HArray1OfDatumReferenceCompartment)& theConstituents)
0050   {
0051     myConstituents = theConstituents;
0052   }
0053   
0054   //! Returns number of Constituents
0055   inline Standard_Integer NbConstituents () const
0056   {  
0057     return (myConstituents.IsNull() ? 0 : myConstituents->Length());
0058   }
0059   
0060   //! Returns Constituents with the given number
0061   inline Handle(StepDimTol_DatumReferenceCompartment) ConstituentsValue(const Standard_Integer num) const
0062   {  
0063     return myConstituents->Value(num);
0064   }
0065   
0066   //! Sets Constituents with given number
0067   inline void ConstituentsValue(const Standard_Integer num, const Handle(StepDimTol_DatumReferenceCompartment)& theItem)
0068   {  
0069     myConstituents->SetValue (num, theItem);
0070   }
0071   
0072   DEFINE_STANDARD_RTTIEXT(StepDimTol_DatumSystem,StepRepr_ShapeAspect)
0073 
0074 private: 
0075   Handle(StepDimTol_HArray1OfDatumReferenceCompartment) myConstituents;
0076 };
0077 #endif // _StepDimTol_DatumSystem_HeaderFile