Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-18 09:21:53

0001 // Created on: 2016-03-30
0002 // Created by: Irina KRYLOVA
0003 // Copyright (c) 2016 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 _StepBasic_ProductDefinitionReference_HeaderFile
0017 #define _StepBasic_ProductDefinitionReference_HeaderFile
0018 
0019 #include <Standard.hxx>
0020 #include <Standard_Type.hxx>
0021 
0022 #include <Standard_Transient.hxx>
0023 class TCollection_HAsciiString;
0024 
0025 class StepBasic_ExternalSource;
0026 
0027 //! Representation of STEP entity Product_Definition_Reference
0028 class StepBasic_ProductDefinitionReference : public Standard_Transient
0029 {
0030 public:
0031   //! Empty constructor
0032   Standard_EXPORT StepBasic_ProductDefinitionReference();
0033 
0034   //! Initialize all fields (own and inherited)
0035   Standard_EXPORT void Init(
0036     const occ::handle<StepBasic_ExternalSource>& theSource,
0037     const occ::handle<TCollection_HAsciiString>& theProductId,
0038     const occ::handle<TCollection_HAsciiString>& theProductDefinitionFormationId,
0039     const occ::handle<TCollection_HAsciiString>& theProductDefinitionId,
0040     const occ::handle<TCollection_HAsciiString>& theIdOwningOrganizationName);
0041 
0042   //! Initialize all fields (own and inherited)
0043   Standard_EXPORT void Init(
0044     const occ::handle<StepBasic_ExternalSource>& theSource,
0045     const occ::handle<TCollection_HAsciiString>& theProductId,
0046     const occ::handle<TCollection_HAsciiString>& theProductDefinitionFormationId,
0047     const occ::handle<TCollection_HAsciiString>& theProductDefinitionId);
0048 
0049   //! Returns field Source
0050   inline occ::handle<StepBasic_ExternalSource> Source() const { return mySource; }
0051 
0052   //! Set field Source
0053   inline void SetSource(const occ::handle<StepBasic_ExternalSource>& theSource)
0054   {
0055     mySource = theSource;
0056   }
0057 
0058   //! Returns field ProductId
0059   inline occ::handle<TCollection_HAsciiString> ProductId() const { return myProductId; }
0060 
0061   //! Set field ProductId
0062   inline void SetProductId(const occ::handle<TCollection_HAsciiString>& theProductId)
0063   {
0064     myProductId = theProductId;
0065   }
0066 
0067   //! Returns field ProductDefinitionFormationId
0068   inline occ::handle<TCollection_HAsciiString> ProductDefinitionFormationId() const
0069   {
0070     return myProductDefinitionFormationId;
0071   }
0072 
0073   //! Set field ProductDefinitionFormationId
0074   inline void SetProductDefinitionFormationId(
0075     const occ::handle<TCollection_HAsciiString>& theProductDefinitionFormationId)
0076   {
0077     myProductDefinitionFormationId = theProductDefinitionFormationId;
0078   }
0079 
0080   //! Returns field ProductDefinitionId
0081   inline occ::handle<TCollection_HAsciiString> ProductDefinitionId() const
0082   {
0083     return myProductDefinitionId;
0084   }
0085 
0086   //! Set field ProductDefinitionId
0087   inline void SetProductDefinitionId(
0088     const occ::handle<TCollection_HAsciiString>& theProductDefinitionId)
0089   {
0090     myProductDefinitionId = theProductDefinitionId;
0091   }
0092 
0093   //! Returns field IdOwningOrganizationName
0094   inline occ::handle<TCollection_HAsciiString> IdOwningOrganizationName() const
0095   {
0096     return myIdOwningOrganizationName;
0097   }
0098 
0099   //! Set field IdOwningOrganizationName
0100   inline void SetIdOwningOrganizationName(
0101     const occ::handle<TCollection_HAsciiString>& theIdOwningOrganizationName)
0102   {
0103     myIdOwningOrganizationName  = theIdOwningOrganizationName;
0104     hasIdOwningOrganizationName = (!theIdOwningOrganizationName.IsNull());
0105   }
0106 
0107   //! Returns true if IdOwningOrganizationName exists
0108   inline bool HasIdOwningOrganizationName() const { return hasIdOwningOrganizationName; }
0109 
0110   DEFINE_STANDARD_RTTIEXT(StepBasic_ProductDefinitionReference, Standard_Transient)
0111 
0112 private:
0113   occ::handle<StepBasic_ExternalSource> mySource;
0114   occ::handle<TCollection_HAsciiString> myProductId;
0115   occ::handle<TCollection_HAsciiString> myProductDefinitionFormationId;
0116   occ::handle<TCollection_HAsciiString> myProductDefinitionId;
0117   occ::handle<TCollection_HAsciiString> myIdOwningOrganizationName;
0118   bool                                  hasIdOwningOrganizationName;
0119 };
0120 
0121 #endif // _StepBasic_ProductDefinitionReference_HeaderFile