X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAlgoAPI%2FGeomAlgoAPI_STEPImport.cpp;h=7ff22b0f015a3500fb3fe675816a4670b61278ef;hb=0479361746467f244b7ccfd1d25443677bdea8a6;hp=8ed138604b6ebfea7cf7d14f52b1fbe35e2feb3c;hpb=534832230a29726c5bf6f438f7630f9058d38ba9;p=modules%2Fshaper.git diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_STEPImport.cpp b/src/GeomAlgoAPI/GeomAlgoAPI_STEPImport.cpp index 8ed138604..7ff22b0f0 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_STEPImport.cpp +++ b/src/GeomAlgoAPI/GeomAlgoAPI_STEPImport.cpp @@ -43,7 +43,6 @@ #include #include // CAREFUL ! position of this file is critic : see Lucien PIGNOLONI / OCC -namespace STEPImport { //============================================================================= /*! * GetShape() @@ -364,10 +363,9 @@ Handle(TCollection_HAsciiString) GetValue (const TCollection_AsciiString& theFil return aValue; } -TopoDS_Shape Import (const TCollection_AsciiString& theFileName, - const TCollection_AsciiString& theFormatName, - TCollection_AsciiString& theError, - const TDF_Label& theShapeLabel) +TopoDS_Shape STEPImport(const std::string& theFileName, + const std::string& theFormatName, + std::string& theError) { TopoDS_Shape aResShape; @@ -388,7 +386,7 @@ TopoDS_Shape Import (const TCollection_AsciiString& theFileName, try { OCC_CATCH_SIGNALS; - IFSelect_ReturnStatus status = aReader.ReadFile(theFileName.ToCString()); + IFSelect_ReturnStatus status = aReader.ReadFile(theFileName.c_str()); if (status == IFSelect_RetDone) { @@ -495,5 +493,3 @@ TopoDS_Shape Import (const TCollection_AsciiString& theFileName, // Return previous locale return aResShape; } - -} // namespace STEPImport