1 // Created on: 2003-06-04
2 // Created by: Galina KULIKOVA
3 // Copyright (c) 2003-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.2
18 #include <Standard_Type.hxx>
19 #include <StepDimTol_GeometricTolerance.hxx>
20 #include <StepDimTol_GeometricToleranceRelationship.hxx>
21 #include <TCollection_HAsciiString.hxx>
23 IMPLEMENT_STANDARD_RTTIEXT(StepDimTol_GeometricToleranceRelationship,Standard_Transient)
25 //=======================================================================
26 //function : StepDimTol_GeometricToleranceRelationship
28 //=======================================================================
29 StepDimTol_GeometricToleranceRelationship::StepDimTol_GeometricToleranceRelationship ()
33 //=======================================================================
36 //=======================================================================
38 void StepDimTol_GeometricToleranceRelationship::Init (const Handle(TCollection_HAsciiString) &theName,
39 const Handle(TCollection_HAsciiString) &theDescription,
40 const Handle(StepDimTol_GeometricTolerance) &theRelatingGeometricTolerance,
41 const Handle(StepDimTol_GeometricTolerance) &theRelatedGeometricTolerance)
46 myDescription = theDescription;
48 myRelatingGeometricTolerance = theRelatingGeometricTolerance;
50 myRelatedGeometricTolerance = theRelatedGeometricTolerance;
53 //=======================================================================
56 //=======================================================================
58 Handle(TCollection_HAsciiString) StepDimTol_GeometricToleranceRelationship::Name () const
63 //=======================================================================
66 //=======================================================================
68 void StepDimTol_GeometricToleranceRelationship::SetName (const Handle(TCollection_HAsciiString) &theName)
73 //=======================================================================
74 //function : Description
76 //=======================================================================
78 Handle(TCollection_HAsciiString) StepDimTol_GeometricToleranceRelationship::Description () const
83 //=======================================================================
84 //function : SetDescription
86 //=======================================================================
88 void StepDimTol_GeometricToleranceRelationship::SetDescription (const Handle(TCollection_HAsciiString) &theDescription)
90 myDescription = theDescription;
93 //=======================================================================
94 //function : RelatingGeometricTolerance
96 //=======================================================================
98 Handle(StepDimTol_GeometricTolerance) StepDimTol_GeometricToleranceRelationship::RelatingGeometricTolerance () const
100 return myRelatingGeometricTolerance;
103 //=======================================================================
104 //function : SetRelatingGeometricTolerance
106 //=======================================================================
108 void StepDimTol_GeometricToleranceRelationship::SetRelatingGeometricTolerance (const Handle(StepDimTol_GeometricTolerance) &theRelatingGeometricTolerance)
110 myRelatingGeometricTolerance = theRelatingGeometricTolerance;
113 //=======================================================================
114 //function : RelatedGeometricTolerance
116 //=======================================================================
118 Handle(StepDimTol_GeometricTolerance) StepDimTol_GeometricToleranceRelationship::RelatedGeometricTolerance () const
120 return myRelatedGeometricTolerance;
123 //=======================================================================
124 //function : SetRelatedGeometricTolerance
126 //=======================================================================
128 void StepDimTol_GeometricToleranceRelationship::SetRelatedGeometricTolerance (const Handle(StepDimTol_GeometricTolerance) &theRelatedGeometricTolerance)
130 myRelatedGeometricTolerance = theRelatedGeometricTolerance;