Warnings on vc14 were eliminated
[occt.git] / src / StepDimTol / StepDimTol_GeometricToleranceRelationship.cxx
1 // Created on: 2003-06-04
2 // Created by: Galina KULIKOVA
3 // Copyright (c) 2003-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.2
17
18 #include <Standard_Type.hxx>
19 #include <StepDimTol_GeometricTolerance.hxx>
20 #include <StepDimTol_GeometricToleranceRelationship.hxx>
21 #include <TCollection_HAsciiString.hxx>
22
23 IMPLEMENT_STANDARD_RTTIEXT(StepDimTol_GeometricToleranceRelationship,MMgt_TShared)
24
25 //=======================================================================
26 //function : StepDimTol_GeometricToleranceRelationship
27 //purpose  : 
28 //=======================================================================
29 StepDimTol_GeometricToleranceRelationship::StepDimTol_GeometricToleranceRelationship ()
30 {
31 }
32
33 //=======================================================================
34 //function : Init
35 //purpose  : 
36 //=======================================================================
37
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)
42 {
43
44   myName = theName;
45
46   myDescription = theDescription;
47
48   myRelatingGeometricTolerance = theRelatingGeometricTolerance;
49
50   myRelatedGeometricTolerance = theRelatedGeometricTolerance;
51 }
52
53 //=======================================================================
54 //function : Name
55 //purpose  : 
56 //=======================================================================
57
58 Handle(TCollection_HAsciiString) StepDimTol_GeometricToleranceRelationship::Name () const
59 {
60   return myName;
61 }
62
63 //=======================================================================
64 //function : SetName
65 //purpose  : 
66 //=======================================================================
67
68 void StepDimTol_GeometricToleranceRelationship::SetName (const Handle(TCollection_HAsciiString) &theName)
69 {
70   myName = theName;
71 }
72
73 //=======================================================================
74 //function : Description
75 //purpose  : 
76 //=======================================================================
77
78 Handle(TCollection_HAsciiString) StepDimTol_GeometricToleranceRelationship::Description () const
79 {
80   return myDescription;
81 }
82
83 //=======================================================================
84 //function : SetDescription
85 //purpose  : 
86 //=======================================================================
87
88 void StepDimTol_GeometricToleranceRelationship::SetDescription (const Handle(TCollection_HAsciiString) &theDescription)
89 {
90   myDescription = theDescription;
91 }
92
93 //=======================================================================
94 //function : RelatingGeometricTolerance
95 //purpose  : 
96 //=======================================================================
97
98 Handle(StepDimTol_GeometricTolerance) StepDimTol_GeometricToleranceRelationship::RelatingGeometricTolerance () const
99 {
100   return myRelatingGeometricTolerance;
101 }
102
103 //=======================================================================
104 //function : SetRelatingGeometricTolerance
105 //purpose  : 
106 //=======================================================================
107
108 void StepDimTol_GeometricToleranceRelationship::SetRelatingGeometricTolerance (const Handle(StepDimTol_GeometricTolerance) &theRelatingGeometricTolerance)
109 {
110   myRelatingGeometricTolerance = theRelatingGeometricTolerance;
111 }
112
113 //=======================================================================
114 //function : RelatedGeometricTolerance
115 //purpose  : 
116 //=======================================================================
117
118 Handle(StepDimTol_GeometricTolerance) StepDimTol_GeometricToleranceRelationship::RelatedGeometricTolerance () const
119 {
120   return myRelatedGeometricTolerance;
121 }
122
123 //=======================================================================
124 //function : SetRelatedGeometricTolerance
125 //purpose  : 
126 //=======================================================================
127
128 void StepDimTol_GeometricToleranceRelationship::SetRelatedGeometricTolerance (const Handle(StepDimTol_GeometricTolerance) &theRelatedGeometricTolerance)
129 {
130   myRelatedGeometricTolerance = theRelatedGeometricTolerance;
131 }