0024624: Lost word in license statement in source files
[occt.git] / src / StepRepr / StepRepr_AssemblyComponentUsage.cxx
1 // Created on: 2000-07-03
2 // Created by: Andrey BETENEV
3 // Copyright (c) 2000-2014 OPEN CASCADE SAS
4 //
5 // This file is part of Open CASCADE Technology software library.
6 //
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.
12 //
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
15
16 // Generator:   ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.1
17
18 #include <StepRepr_AssemblyComponentUsage.ixx>
19
20 //=======================================================================
21 //function : StepRepr_AssemblyComponentUsage
22 //purpose  : 
23 //=======================================================================
24
25 StepRepr_AssemblyComponentUsage::StepRepr_AssemblyComponentUsage ()
26 {
27   defReferenceDesignator = Standard_False;
28 }
29
30 //=======================================================================
31 //function : Init
32 //purpose  : 
33 //=======================================================================
34
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)
43 {
44   StepRepr_ProductDefinitionUsage::Init(aProductDefinitionRelationship_Id,
45                                         aProductDefinitionRelationship_Name,
46                                         hasProductDefinitionRelationship_Description,
47                                         aProductDefinitionRelationship_Description,
48                                         aProductDefinitionRelationship_RelatingProductDefinition,
49                                         aProductDefinitionRelationship_RelatedProductDefinition);
50
51   defReferenceDesignator = hasReferenceDesignator;
52   if (defReferenceDesignator) {
53     theReferenceDesignator = aReferenceDesignator;
54   }
55   else theReferenceDesignator.Nullify();
56 }
57
58 //=======================================================================
59 //function : ReferenceDesignator
60 //purpose  : 
61 //=======================================================================
62
63 Handle(TCollection_HAsciiString) StepRepr_AssemblyComponentUsage::ReferenceDesignator () const
64 {
65   return theReferenceDesignator;
66 }
67
68 //=======================================================================
69 //function : SetReferenceDesignator
70 //purpose  : 
71 //=======================================================================
72
73 void StepRepr_AssemblyComponentUsage::SetReferenceDesignator (const Handle(TCollection_HAsciiString) &aReferenceDesignator)
74 {
75   theReferenceDesignator = aReferenceDesignator;
76 }
77
78 //=======================================================================
79 //function : HasReferenceDesignator
80 //purpose  : 
81 //=======================================================================
82
83 Standard_Boolean StepRepr_AssemblyComponentUsage::HasReferenceDesignator () const
84 {
85   return defReferenceDesignator;
86 }