From afbd85bd4062b426c9db783226333b0bb97368e2 Mon Sep 17 00:00:00 2001 From: spo Date: Mon, 29 Jun 2015 16:45:30 +0300 Subject: [PATCH] Issue #608: Usage of OCCT in interface -- Remove OCCT from *Export interfaces -- Fix: IGESExport signature --- src/GeomAlgoAPI/GeomAlgoAPI_IGESExport.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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; } -- 2.39.2