1 // Created on: 2000-07-03
2 // Created by: Andrey BETENEV
3 // Copyright (c) 2000-2014 OPEN CASCADE SAS
5 // This file is part of Open CASCADE Technology software library.
7 // This library is free software; you can redistribute it and/or modify it under
8 // the terms of the GNU Lesser General Public License version 2.1 as published
9 // by the Free Software Foundation, with special exception defined in the file
10 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
11 // distribution for complete text of the license and disclaimer of any warranty.
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
16 // Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.1
18 #include <StepRepr_AssemblyComponentUsage.ixx>
20 //=======================================================================
21 //function : StepRepr_AssemblyComponentUsage
23 //=======================================================================
25 StepRepr_AssemblyComponentUsage::StepRepr_AssemblyComponentUsage ()
27 defReferenceDesignator = Standard_False;
30 //=======================================================================
33 //=======================================================================
35 void StepRepr_AssemblyComponentUsage::Init (const Handle(TCollection_HAsciiString) &aProductDefinitionRelationship_Id,
36 const Handle(TCollection_HAsciiString) &aProductDefinitionRelationship_Name,
37 const Standard_Boolean hasProductDefinitionRelationship_Description,
38 const Handle(TCollection_HAsciiString) &aProductDefinitionRelationship_Description,
39 const Handle(StepBasic_ProductDefinition) &aProductDefinitionRelationship_RelatingProductDefinition,
40 const Handle(StepBasic_ProductDefinition) &aProductDefinitionRelationship_RelatedProductDefinition,
41 const Standard_Boolean hasReferenceDesignator,
42 const Handle(TCollection_HAsciiString) &aReferenceDesignator)
44 StepRepr_ProductDefinitionUsage::Init(aProductDefinitionRelationship_Id,
45 aProductDefinitionRelationship_Name,
46 hasProductDefinitionRelationship_Description,
47 aProductDefinitionRelationship_Description,
48 aProductDefinitionRelationship_RelatingProductDefinition,
49 aProductDefinitionRelationship_RelatedProductDefinition);
51 defReferenceDesignator = hasReferenceDesignator;
52 if (defReferenceDesignator) {
53 theReferenceDesignator = aReferenceDesignator;
55 else theReferenceDesignator.Nullify();
58 //=======================================================================
59 //function : ReferenceDesignator
61 //=======================================================================
63 Handle(TCollection_HAsciiString) StepRepr_AssemblyComponentUsage::ReferenceDesignator () const
65 return theReferenceDesignator;
68 //=======================================================================
69 //function : SetReferenceDesignator
71 //=======================================================================
73 void StepRepr_AssemblyComponentUsage::SetReferenceDesignator (const Handle(TCollection_HAsciiString) &aReferenceDesignator)
75 theReferenceDesignator = aReferenceDesignator;
78 //=======================================================================
79 //function : HasReferenceDesignator
81 //=======================================================================
83 Standard_Boolean StepRepr_AssemblyComponentUsage::HasReferenceDesignator () const
85 return defReferenceDesignator;