From: spo Date: Mon, 29 Jun 2015 13:45:30 +0000 (+0300) Subject: Issue #608: Usage of OCCT in interface -- Remove OCCT from *Export interfaces --... X-Git-Tag: V_1.3.0~161 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=afbd85bd4062b426c9db783226333b0bb97368e2;p=modules%2Fshaper.git Issue #608: Usage of OCCT in interface -- Remove OCCT from *Export interfaces -- Fix: IGESExport signature --- diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_IGESExport.cpp b/src/GeomAlgoAPI/GeomAlgoAPI_IGESExport.cpp index 93fb05b02..ba862725a 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_IGESExport.cpp +++ b/src/GeomAlgoAPI/GeomAlgoAPI_IGESExport.cpp @@ -78,13 +78,14 @@ int KindOfBRep (const TopoDS_Shape& theShape) } //============================================================================= -bool IGESExport(const TCollection_AsciiString& theFileName, - const TCollection_AsciiString& theFormatName, +bool IGESExport(const std::string& theFileName, + const std::string& theFormatName, const TopoDS_Shape& theShape, - TCollection_AsciiString& theError) + std::string& theError) { // theFormatName expected "IGES-5.1", "IGES-5.3"... - TCollection_AsciiString aVersion = theFormatName.Token("-", 2); + TCollection_AsciiString aFormatName(theFormatName.c_str()); + TCollection_AsciiString aVersion = aFormatName.Token("-", 2); #ifdef _DEBUG if (!aVersion.IsEqual("5.1") || !aVersion.IsEqual("5.3")) std::cout << "Warning: unrecognized version " << aVersion.ToCString() @@ -128,7 +129,7 @@ bool IGESExport(const TCollection_AsciiString& theFileName, // perform shape writing if( ICW.AddShape( theShape ) ) { ICW.ComputeModel(); - return ICW.Write( theFileName.ToCString() ); + return ICW.Write(theFileName.c_str()); } return false; }