Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-07-24 09:17:45

0001 // Created on: 2015-07-10
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 _StepAP242_ItemIdentifiedRepresentationUsage_HeaderFile
0017 #define _StepAP242_ItemIdentifiedRepresentationUsage_HeaderFile
0018 
0019 #include <Standard.hxx>
0020 
0021 #include <Standard_Transient.hxx>
0022 #include <StepAP242_ItemIdentifiedRepresentationUsageDefinition.hxx>
0023 #include <Standard_Integer.hxx>
0024 #include <StepRepr_HArray1OfRepresentationItem.hxx>
0025 
0026 class TCollection_HAsciiString;
0027 class StepRepr_Representation;
0028 class StepRepr_RepresentationItem;
0029 
0030 class StepAP242_ItemIdentifiedRepresentationUsage;
0031 DEFINE_STANDARD_HANDLE(StepAP242_ItemIdentifiedRepresentationUsage, Standard_Transient)
0032 
0033 class StepAP242_ItemIdentifiedRepresentationUsage : public Standard_Transient
0034 {
0035 
0036 public:
0037   //! Returns a ItemIdentifiedRepresentationUsage
0038   Standard_EXPORT StepAP242_ItemIdentifiedRepresentationUsage();
0039 
0040   //! Init all fields own and inherited
0041   Standard_EXPORT void Init(
0042     const Handle(TCollection_HAsciiString)&                      theName,
0043     const Handle(TCollection_HAsciiString)&                      theDescription,
0044     const StepAP242_ItemIdentifiedRepresentationUsageDefinition& theDefinition,
0045     const Handle(StepRepr_Representation)&                       theUsedRepresentation,
0046     const Handle(StepRepr_HArray1OfRepresentationItem)&          theIdentifiedItem);
0047 
0048   //! Set field Name
0049   inline void SetName(const Handle(TCollection_HAsciiString)& theName) { name = theName; }
0050 
0051   //! Returns field Name
0052   inline Handle(TCollection_HAsciiString) Name() const { return name; }
0053 
0054   //! Set field Description
0055   inline void SetDescription(const Handle(TCollection_HAsciiString)& theDescription)
0056   {
0057     description = theDescription;
0058   }
0059 
0060   //! Returns field Description
0061   inline Handle(TCollection_HAsciiString) Description() const { return description; }
0062 
0063   //! Set field Definition
0064   inline void SetDefinition(
0065     const StepAP242_ItemIdentifiedRepresentationUsageDefinition& theDefinition)
0066   {
0067     definition = theDefinition;
0068   }
0069 
0070   //! Returns field Definition
0071   inline StepAP242_ItemIdentifiedRepresentationUsageDefinition Definition() const
0072   {
0073     return definition;
0074   }
0075 
0076   //! Set field UsedRepresentation
0077   inline void SetUsedRepresentation(const Handle(StepRepr_Representation)& theUsedRepresentation)
0078   {
0079     usedRepresentation = theUsedRepresentation;
0080   }
0081 
0082   //! Returns field UsedRepresentation
0083   inline Handle(StepRepr_Representation) UsedRepresentation() const { return usedRepresentation; }
0084 
0085   //! Returns field IdentifiedItem
0086   inline Handle(StepRepr_HArray1OfRepresentationItem) IdentifiedItem() const
0087   {
0088     return identifiedItem;
0089   }
0090 
0091   //! Returns number of identified items
0092   inline Standard_Integer NbIdentifiedItem() const
0093   {
0094     return (identifiedItem.IsNull() ? 0 : identifiedItem->Length());
0095   }
0096 
0097   //! Set field IdentifiedItem
0098   inline void SetIdentifiedItem(
0099     const Handle(StepRepr_HArray1OfRepresentationItem)& theIdentifiedItem)
0100   {
0101     identifiedItem = theIdentifiedItem;
0102   }
0103 
0104   //! Returns identified item with given number
0105   inline Handle(StepRepr_RepresentationItem) IdentifiedItemValue(const Standard_Integer num) const
0106   {
0107     return identifiedItem->Value(num);
0108   }
0109 
0110   //! Set identified item with given number
0111   inline void SetIdentifiedItemValue(const Standard_Integer                     num,
0112                                      const Handle(StepRepr_RepresentationItem)& theItem)
0113   {
0114     identifiedItem->SetValue(num, theItem);
0115   }
0116 
0117   DEFINE_STANDARD_RTTIEXT(StepAP242_ItemIdentifiedRepresentationUsage, Standard_Transient)
0118 
0119 private:
0120   Handle(TCollection_HAsciiString)                      name;
0121   Handle(TCollection_HAsciiString)                      description;
0122   StepAP242_ItemIdentifiedRepresentationUsageDefinition definition;
0123   Handle(StepRepr_Representation)                       usedRepresentation;
0124   Handle(StepRepr_HArray1OfRepresentationItem)          identifiedItem;
0125 };
0126 #endif // _StepAP242_ItemIdentifiedRepresentationUsage_HeaderFile