Back to home page

EIC code displayed by LXR

 
 

    


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

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