Back to home page

EIC code displayed by LXR

 
 

    


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

0001 // Created on: 2000-07-03
0002 // Created by: Andrey BETENEV
0003 // Copyright (c) 2000-2014 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_ProductDefinitionRelationship_HeaderFile
0017 #define _StepBasic_ProductDefinitionRelationship_HeaderFile
0018 
0019 #include <Standard.hxx>
0020 #include <Standard_Type.hxx>
0021 
0022 #include <Standard_Transient.hxx>
0023 #include <StepBasic_ProductDefinitionOrReference.hxx>
0024 class TCollection_HAsciiString;
0025 class StepBasic_ProductDefinition;
0026 
0027 
0028 class StepBasic_ProductDefinitionRelationship;
0029 DEFINE_STANDARD_HANDLE(StepBasic_ProductDefinitionRelationship, Standard_Transient)
0030 
0031 //! Representation of STEP entity ProductDefinitionRelationship
0032 class StepBasic_ProductDefinitionRelationship : public Standard_Transient
0033 {
0034 
0035 public:
0036 
0037   
0038   //! Empty constructor
0039   Standard_EXPORT StepBasic_ProductDefinitionRelationship();
0040   
0041   //! Initialize all fields (own and inherited)
0042   Standard_EXPORT void Init (const Handle(TCollection_HAsciiString)& aId, const Handle(TCollection_HAsciiString)& aName, const Standard_Boolean hasDescription, const Handle(TCollection_HAsciiString)& aDescription, const Handle(StepBasic_ProductDefinition)& aRelatingProductDefinition, const Handle(StepBasic_ProductDefinition)& aRelatedProductDefinition);
0043 
0044   //! Initialize all fields (own and inherited)
0045   Standard_EXPORT void Init (const Handle(TCollection_HAsciiString)& aId, const Handle(TCollection_HAsciiString)& aName, const Standard_Boolean hasDescription, const Handle(TCollection_HAsciiString)& aDescription, const StepBasic_ProductDefinitionOrReference& aRelatingProductDefinition, const StepBasic_ProductDefinitionOrReference& aRelatedProductDefinition);
0046   
0047   //! Returns field Id
0048   Standard_EXPORT Handle(TCollection_HAsciiString) Id() const;
0049   
0050   //! Set field Id
0051   Standard_EXPORT void SetId (const Handle(TCollection_HAsciiString)& Id);
0052   
0053   //! Returns field Name
0054   Standard_EXPORT Handle(TCollection_HAsciiString) Name() const;
0055   
0056   //! Set field Name
0057   Standard_EXPORT void SetName (const Handle(TCollection_HAsciiString)& Name);
0058   
0059   //! Returns field Description
0060   Standard_EXPORT Handle(TCollection_HAsciiString) Description() const;
0061   
0062   //! Set field Description
0063   Standard_EXPORT void SetDescription (const Handle(TCollection_HAsciiString)& Description);
0064   
0065   //! Returns True if optional field Description is defined
0066   Standard_EXPORT Standard_Boolean HasDescription() const;
0067   
0068   //! Returns field RelatingProductDefinition
0069   Standard_EXPORT Handle(StepBasic_ProductDefinition) RelatingProductDefinition() const;
0070 
0071   //! Returns field RelatingProductDefinition in AP242
0072   Standard_EXPORT StepBasic_ProductDefinitionOrReference RelatingProductDefinitionAP242() const;
0073   
0074   //! Set field RelatingProductDefinition
0075   Standard_EXPORT void SetRelatingProductDefinition (const Handle(StepBasic_ProductDefinition)& RelatingProductDefinition);
0076   
0077   //! Set field RelatingProductDefinition in AP242
0078   Standard_EXPORT void SetRelatingProductDefinition (const StepBasic_ProductDefinitionOrReference& RelatingProductDefinition);
0079 
0080   //! Returns field RelatedProductDefinition
0081   Standard_EXPORT Handle(StepBasic_ProductDefinition) RelatedProductDefinition() const;
0082 
0083   //! Returns field RelatedProductDefinition in AP242
0084   Standard_EXPORT StepBasic_ProductDefinitionOrReference RelatedProductDefinitionAP242() const;
0085   
0086   //! Set field RelatedProductDefinition
0087   Standard_EXPORT void SetRelatedProductDefinition (const Handle(StepBasic_ProductDefinition)& RelatedProductDefinition);
0088 
0089   //! Set field RelatedProductDefinition in AP242
0090   Standard_EXPORT void SetRelatedProductDefinition (const StepBasic_ProductDefinitionOrReference& RelatedProductDefinition);
0091 
0092 
0093   DEFINE_STANDARD_RTTIEXT(StepBasic_ProductDefinitionRelationship,Standard_Transient)
0094 
0095 protected:
0096 
0097 
0098 
0099 
0100 private:
0101 
0102 
0103   Handle(TCollection_HAsciiString) theId;
0104   Handle(TCollection_HAsciiString) theName;
0105   Handle(TCollection_HAsciiString) theDescription;
0106   StepBasic_ProductDefinitionOrReference theRelatingProductDefinition;
0107   StepBasic_ProductDefinitionOrReference theRelatedProductDefinition;
0108   Standard_Boolean defDescription;
0109 
0110 
0111 };
0112 
0113 
0114 
0115 
0116 
0117 
0118 
0119 #endif // _StepBasic_ProductDefinitionRelationship_HeaderFile