Salome HOME
Issue #608: Usage of OCCT in interface -- Remove OCCT from *Export interfaces --...
[modules/shaper.git] / src / GeomAlgoAPI / GeomAlgoAPI_BREPImport.cpp
index 2df29ebc080dedf4445d8563d8b6b54616c14d78..62d63ac24b4d063b5935f0574ae1218610851160 100644 (file)
  *
  */
 //=============================================================================
-//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;
 }
-
-}
-//}