Back to home page

EIC code displayed by LXR

 
 

    


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

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