2f48bd4789ce33ab8a7fb8c26721d8ac6df681ba
[occt.git] / src / StepToTopoDS / StepToTopoDS.cxx
1 // Created on: 1995-01-03
2 // Created by: Frederic MAUPAS
3 // Copyright (c) 1995-1999 Matra Datavision
4 // Copyright (c) 1999-2012 OPEN CASCADE SAS
5 //
6 // The content of this file is subject to the Open CASCADE Technology Public
7 // License Version 6.5 (the "License"). You may not use the content of this file
8 // except in compliance with the License. Please obtain a copy of the License
9 // at http://www.opencascade.org and read it completely before using this file.
10 //
11 // The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
12 // main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
13 //
14 // The Original Code and all software distributed under the License is
15 // distributed on an "AS IS" basis, without warranty of any kind, and the
16 // Initial Developer hereby disclaims all such warranties, including without
17 // limitation, any warranties of merchantability, fitness for a particular
18 // purpose or non-infringement. Please see the License for the specific terms
19 // and conditions governing the rights and limitations under the License.
20
21
22 #include <StepToTopoDS.ixx>
23
24 Handle(TCollection_HAsciiString) StepToTopoDS::DecodeBuilderError(const StepToTopoDS_BuilderError Error)
25 {
26   Handle(TCollection_HAsciiString) mess;
27   switch(Error)
28     {
29     case StepToTopoDS_BuilderDone:
30       {
31         mess = new TCollection_HAsciiString("Builder Done");
32         break;
33       }
34     case StepToTopoDS_BuilderOther:
35       {
36         mess = new TCollection_HAsciiString("Builder Other");
37         break;
38       }
39     }
40   return mess;
41 }
42
43 Handle(TCollection_HAsciiString) StepToTopoDS::DecodeShellError(const StepToTopoDS_TranslateShellError Error)
44 {
45   Handle(TCollection_HAsciiString) mess;
46   switch(Error)
47     {
48     case StepToTopoDS_TranslateShellDone:
49       {
50         mess = new TCollection_HAsciiString("Translate Shell Done");
51         break;
52       }
53     case StepToTopoDS_TranslateShellOther:
54       {
55         mess = new TCollection_HAsciiString("Translate Shell Other");
56         break;
57       }
58     }
59   return mess;
60 }
61
62 Handle(TCollection_HAsciiString) StepToTopoDS::DecodeFaceError(const StepToTopoDS_TranslateFaceError Error)
63 {
64   Handle(TCollection_HAsciiString) mess;
65   switch(Error)
66     {
67     case StepToTopoDS_TranslateFaceDone:
68       {
69         mess = new TCollection_HAsciiString("Translate Face Done");
70         break;
71       }
72     case StepToTopoDS_TranslateFaceOther:
73       {
74         mess = new TCollection_HAsciiString("Translate Face Other");
75         break;
76       }
77     }
78   return mess;
79 }
80
81 Handle(TCollection_HAsciiString) StepToTopoDS::DecodeEdgeError(const StepToTopoDS_TranslateEdgeError Error)
82 {
83   Handle(TCollection_HAsciiString) mess;
84   switch(Error)
85     {
86     case StepToTopoDS_TranslateEdgeDone:
87       {
88         mess = new TCollection_HAsciiString("Translate Edge Done");
89         break;
90       }
91     case StepToTopoDS_TranslateEdgeOther:
92       {
93         mess = new TCollection_HAsciiString("Translate Edge Other");
94         break;
95       }
96     }
97   return mess;
98 }
99
100 Handle(TCollection_HAsciiString) StepToTopoDS::DecodeVertexError(const StepToTopoDS_TranslateVertexError Error)
101 {
102   Handle(TCollection_HAsciiString) mess;
103   switch(Error)
104     {
105     case StepToTopoDS_TranslateVertexDone:
106       {
107         mess = new TCollection_HAsciiString("Translate Vertex Done");
108         break;
109       }
110     case StepToTopoDS_TranslateVertexOther:
111       {
112         mess = new TCollection_HAsciiString("Translate Vertex Other");
113         break;
114       }
115     }
116   return mess;
117 }
118
119 Handle(TCollection_HAsciiString) StepToTopoDS::DecodeVertexLoopError(const StepToTopoDS_TranslateVertexLoopError Error)
120 {
121   Handle(TCollection_HAsciiString) mess;
122   switch(Error)
123     {
124     case StepToTopoDS_TranslateVertexLoopDone:
125       {
126         mess = new TCollection_HAsciiString("Translate VertexLoop Done");
127         break;
128       }
129     case StepToTopoDS_TranslateVertexLoopOther:
130       {
131         mess = new TCollection_HAsciiString("Translate VertexLoop Other");
132         break;
133       }
134     }
135   return mess;
136 }
137
138 Handle(TCollection_HAsciiString) StepToTopoDS::DecodePolyLoopError(const StepToTopoDS_TranslatePolyLoopError Error)
139 {
140   Handle(TCollection_HAsciiString) mess;
141   switch(Error)
142     {
143     case StepToTopoDS_TranslatePolyLoopDone:
144       {
145         mess = new TCollection_HAsciiString("Translate PolyLoop Done");
146         break;
147       }
148     case StepToTopoDS_TranslatePolyLoopOther:
149       {
150         mess = new TCollection_HAsciiString("Translate PolyLoop Other");
151         break;
152       }
153     }
154   return mess;
155 }
156
157
158 Standard_CString StepToTopoDS::DecodeGeometricToolError(const StepToTopoDS_GeometricToolError Error)
159 {
160   Standard_CString  mess="";
161   switch(Error)
162     {
163     case StepToTopoDS_GeometricToolDone:
164       {
165         mess = Standard_CString(" Geometric Tool is done");
166         break;
167       }
168     case StepToTopoDS_GeometricToolIsDegenerated:
169       {
170         mess = Standard_CString(" an Edge is degenerated");
171         break;
172       }
173     case StepToTopoDS_GeometricToolHasNoPCurve:
174       {
175         mess = Standard_CString(" SurfaceCurve does not contain a PCurve lying on the BasisSurface");
176         break;
177       }
178     case StepToTopoDS_GeometricToolWrong3dParameters:
179       {
180         mess = Standard_CString(" the update of 3D-Parameters failed");
181         break;
182       }
183     case StepToTopoDS_GeometricToolNoProjectiOnCurve:
184       {
185         mess = Standard_CString(" the projection of a VertexPoint on the curve3d failed");
186         break;
187       }
188     case StepToTopoDS_GeometricToolOther:
189       {
190         mess = Standard_CString(" GeometricTool failed");
191         break;
192       }
193     }
194   return mess;
195 }
196
197