X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAlgoAPI%2FGeomAlgoAPI_BREPImport.cpp;h=62d63ac24b4d063b5935f0574ae1218610851160;hb=afbd85bd4062b426c9db783226333b0bb97368e2;hp=6d676af7c31bc9131eb1c8b158d0f10efe81df38;hpb=cb668a73b1f747be04e09968f1789ab779b2ca45;p=modules%2Fshaper.git diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_BREPImport.cpp b/src/GeomAlgoAPI/GeomAlgoAPI_BREPImport.cpp index 6d676af7c..62d63ac24 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_BREPImport.cpp +++ b/src/GeomAlgoAPI/GeomAlgoAPI_BREPImport.cpp @@ -1,6 +1,6 @@ // Copyright (C) 2014-20xx CEA/DEN, EDF R&D -#include +#include #include #include @@ -10,23 +10,18 @@ * */ //============================================================================= -//extern "C" { -namespace BREPImport { -TopoDS_Shape Import(const TCollection_AsciiString& theFileName, - const TCollection_AsciiString&, - TCollection_AsciiString& theError, const TDF_Label&) +TopoDS_Shape BREPImport(const std::string& theFileName, + const std::string&, + std::string& theError) { #ifdef _DEBUG std::cout << "Import BREP from file " << theFileName << std::endl; #endif TopoDS_Shape aShape; BRep_Builder aBuilder; - BRepTools::Read(aShape, theFileName.ToCString(), aBuilder); + BRepTools::Read(aShape, theFileName.c_str(), aBuilder); if (aShape.IsNull()) { theError = "BREP Import failed"; } return aShape; } - -} -//}