]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #608: Usage of OCCT in interface -- Remove OCCT from *Export interfaces --...
authorspo <sergey.pokhodenko@opencascade.com>
Mon, 29 Jun 2015 13:45:30 +0000 (16:45 +0300)
committerspo <sergey.pokhodenko@opencascade.com>
Mon, 29 Jun 2015 13:47:00 +0000 (16:47 +0300)
src/GeomAlgoAPI/GeomAlgoAPI_IGESExport.cpp

index 93fb05b025dc428c319d64a5869d15143dad8bbc..ba862725a8a0ec72fc0c8dae29ecf97af1f3219a 100644 (file)
@@ -78,13 +78,14 @@ int KindOfBRep (const TopoDS_Shape& theShape)
 }
 
 //=============================================================================
-bool IGESExport(const TCollection_AsciiString& theFileName,
-                const TCollection_AsciiString& theFormatName,
+bool IGESExport(const std::string& theFileName,
+                const std::string& theFormatName,
                 const TopoDS_Shape& theShape,
-                TCollection_AsciiString& theError)
+                std::string& theError)
 {
   // theFormatName expected "IGES-5.1", "IGES-5.3"...
-  TCollection_AsciiString aVersion = theFormatName.Token("-", 2);
+  TCollection_AsciiString aFormatName(theFormatName.c_str());
+  TCollection_AsciiString aVersion = aFormatName.Token("-", 2);
   #ifdef _DEBUG
   if (!aVersion.IsEqual("5.1") || !aVersion.IsEqual("5.3"))
     std::cout << "Warning: unrecognized version " << aVersion.ToCString()
@@ -128,7 +129,7 @@ bool IGESExport(const TCollection_AsciiString& theFileName,
   // perform shape writing
   if( ICW.AddShape( theShape ) ) {
     ICW.ComputeModel();
-    return ICW.Write( theFileName.ToCString() );
+    return ICW.Write(theFileName.c_str());
   }
   return false;
 }