]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/GeomAlgoAPI/GeomAlgoAPI_STEPExport.cpp
Salome HOME
Issue #608: Usage of OCCT in interface -- Remove OCCT from *Export interfaces
[modules/shaper.git] / src / GeomAlgoAPI / GeomAlgoAPI_STEPExport.cpp
index ab2ac793111d1bc994ae56977f3721f2f15ab7e5..6ec05e477e284da9903293730fdf84a2bf3b97c1 100644 (file)
@@ -1,5 +1,9 @@
 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
 
+// File:    GEOMALGOAPI_STEPExport.cpp
+// Created: May 14, 2015
+// Author:  Sergey POKHODENKO
+
 #include <GeomAlgoAPI_STEPExport.h>
 
 #include "GeomAlgoAPI_Tools.h"
 
 namespace STEPExport {
 
-bool Export(const TCollection_AsciiString& theFileName,
-            const TCollection_AsciiString& theFormatName,
+bool Export(const std::string& theFileName,
+            const std::string& theFormatName,
             const TopoDS_Shape& theShape,
-            TCollection_AsciiString& theError)
+            std::string& theError)
 {
   #ifdef _DEBUG
-  std::cout << "Export STEP into file " << theFileName.ToCString() << std::endl;
+  std::cout << "Export STEP into file " << theFileName << std::endl;
   #endif
 
   try
@@ -34,7 +38,7 @@ bool Export(const TCollection_AsciiString& theFileName,
     status = aWriter.Transfer( theShape, STEPControl_AsIs );
     //VRV: OCC 4.0 migration
     if( status == IFSelect_RetDone )
-      status = aWriter.Write( theFileName.ToCString() );
+      status = aWriter.Write( theFileName.c_str() );
 
     // Return previous locale
     if( status == IFSelect_RetDone )