0027566: Configuration - define Handle_ as non-template class for compatibility with...
[occt.git] / src / StepDimTol / StepDimTol_GeometricToleranceRelationship.cxx
CommitLineData
b311480e 1// Created on: 2003-06-04
2// Created by: Galina KULIKOVA
973c2be1 3// Copyright (c) 2003-2014 OPEN CASCADE SAS
b311480e 4//
973c2be1 5// This file is part of Open CASCADE Technology software library.
b311480e 6//
d5f74e42 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
973c2be1 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.
b311480e 12//
973c2be1 13// Alternatively, this file may be used under the terms of Open CASCADE
14// commercial license or contractual agreement.
b311480e 15
7fd59977 16// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
7fd59977 17
42cf5bc1 18#include <Standard_Type.hxx>
19#include <StepDimTol_GeometricTolerance.hxx>
20#include <StepDimTol_GeometricToleranceRelationship.hxx>
21#include <TCollection_HAsciiString.hxx>
7fd59977 22
92efcf78 23IMPLEMENT_STANDARD_RTTIEXT(StepDimTol_GeometricToleranceRelationship,MMgt_TShared)
24
7fd59977 25//=======================================================================
26//function : StepDimTol_GeometricToleranceRelationship
27//purpose :
28//=======================================================================
7fd59977 29StepDimTol_GeometricToleranceRelationship::StepDimTol_GeometricToleranceRelationship ()
30{
31}
32
33//=======================================================================
34//function : Init
35//purpose :
36//=======================================================================
37
2f220b97 38void 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)
7fd59977 42{
43
2f220b97 44 myName = theName;
7fd59977 45
2f220b97 46 myDescription = theDescription;
7fd59977 47
2f220b97 48 myRelatingGeometricTolerance = theRelatingGeometricTolerance;
7fd59977 49
2f220b97 50 myRelatedGeometricTolerance = theRelatedGeometricTolerance;
7fd59977 51}
52
53//=======================================================================
54//function : Name
55//purpose :
56//=======================================================================
57
58Handle(TCollection_HAsciiString) StepDimTol_GeometricToleranceRelationship::Name () const
59{
2f220b97 60 return myName;
7fd59977 61}
62
63//=======================================================================
64//function : SetName
65//purpose :
66//=======================================================================
67
2f220b97 68void StepDimTol_GeometricToleranceRelationship::SetName (const Handle(TCollection_HAsciiString) &theName)
7fd59977 69{
2f220b97 70 myName = theName;
7fd59977 71}
72
73//=======================================================================
74//function : Description
75//purpose :
76//=======================================================================
77
78Handle(TCollection_HAsciiString) StepDimTol_GeometricToleranceRelationship::Description () const
79{
2f220b97 80 return myDescription;
7fd59977 81}
82
83//=======================================================================
84//function : SetDescription
85//purpose :
86//=======================================================================
87
2f220b97 88void StepDimTol_GeometricToleranceRelationship::SetDescription (const Handle(TCollection_HAsciiString) &theDescription)
7fd59977 89{
2f220b97 90 myDescription = theDescription;
7fd59977 91}
92
93//=======================================================================
94//function : RelatingGeometricTolerance
95//purpose :
96//=======================================================================
97
98Handle(StepDimTol_GeometricTolerance) StepDimTol_GeometricToleranceRelationship::RelatingGeometricTolerance () const
99{
2f220b97 100 return myRelatingGeometricTolerance;
7fd59977 101}
102
103//=======================================================================
104//function : SetRelatingGeometricTolerance
105//purpose :
106//=======================================================================
107
2f220b97 108void StepDimTol_GeometricToleranceRelationship::SetRelatingGeometricTolerance (const Handle(StepDimTol_GeometricTolerance) &theRelatingGeometricTolerance)
7fd59977 109{
2f220b97 110 myRelatingGeometricTolerance = theRelatingGeometricTolerance;
7fd59977 111}
112
113//=======================================================================
114//function : RelatedGeometricTolerance
115//purpose :
116//=======================================================================
117
118Handle(StepDimTol_GeometricTolerance) StepDimTol_GeometricToleranceRelationship::RelatedGeometricTolerance () const
119{
2f220b97 120 return myRelatedGeometricTolerance;
7fd59977 121}
122
123//=======================================================================
124//function : SetRelatedGeometricTolerance
125//purpose :
126//=======================================================================
127
2f220b97 128void StepDimTol_GeometricToleranceRelationship::SetRelatedGeometricTolerance (const Handle(StepDimTol_GeometricTolerance) &theRelatedGeometricTolerance)
7fd59977 129{
2f220b97 130 myRelatedGeometricTolerance = theRelatedGeometricTolerance;
7fd59977 131}