#include <Standard_Failure.hxx>
#include <Standard_ErrorHandler.hxx> // CAREFUL ! position of this file is critic : see Lucien PIGNOLONI / OCC
-namespace STEPImport {
//=============================================================================
/*!
* GetShape()
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;
try {
OCC_CATCH_SIGNALS;
- IFSelect_ReturnStatus status = aReader.ReadFile(theFileName.ToCString());
+ IFSelect_ReturnStatus status = aReader.ReadFile(theFileName.c_str());
if (status == IFSelect_RetDone) {
// Return previous locale
return aResShape;
}
-
-} // namespace STEPImport