Salome HOME
Copyright update 2022
[modules/geom.git] / src / STEPPlugin / STEPPlugin_IECallBack.cxx
index 86f00981f512ce993a226704d76c26c0c61760a4..95a664af64971518862d24553744c724b5b71a7b 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2014-2016  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2014-2022  CEA/DEN, EDF R&D, OPEN CASCADE
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -46,12 +46,11 @@ STEPPlugin_IECallBack::~STEPPlugin_IECallBack()
  */
 //=============================================================================
 bool
-STEPPlugin_IECallBack::Export( int                            theDocId,
-                              const Handle(GEOM_Object)      theOriginal,
-                              const TCollection_AsciiString& theFileName,
-                              const TCollection_AsciiString& theFormatName )
+STEPPlugin_IECallBack::Export( const Handle(GEOM_Object)      theOriginal,
+                               const TCollection_AsciiString& theFileName,
+                               const TCollection_AsciiString& /*theFormatName*/ )
 {
-  STEPPlugin_IOperations* aPluginOperations = STEPPlugin_OperationsCreator::get( GetEngine(), theDocId );
+  STEPPlugin_IOperations* aPluginOperations = STEPPlugin_OperationsCreator::get( GetEngine() );
   const STEPPlugin_IOperations::LengthUnit aUnit = STEPPlugin_IOperations::LengthUnit_Meter;
 
   aPluginOperations->ExportSTEP( theOriginal, theFileName, aUnit );
@@ -64,11 +63,10 @@ STEPPlugin_IECallBack::Export( int                            theDocId,
  */
 //=============================================================================
 Handle(TColStd_HSequenceOfTransient)
-STEPPlugin_IECallBack::Import( int                            theDocId,
-                              const TCollection_AsciiString& theFormatName,
-                              const TCollection_AsciiString& theFileName )
+STEPPlugin_IECallBack::Import( const TCollection_AsciiString& theFormatName,
+                               const TCollection_AsciiString& theFileName )
 {
-  STEPPlugin_IOperations* aPluginOperations = STEPPlugin_OperationsCreator::get( GetEngine(), theDocId );
+  STEPPlugin_IOperations* aPluginOperations = STEPPlugin_OperationsCreator::get( GetEngine() );
   bool anIsIgnoreUnits = ( theFormatName == "STEP_SCALE" ) ? true : false;
   return aPluginOperations->ImportSTEP( theFileName, anIsIgnoreUnits, false );
 }
@@ -79,11 +77,10 @@ STEPPlugin_IECallBack::Import( int                            theDocId,
  */
 //=============================================================================
 TCollection_AsciiString
-STEPPlugin_IECallBack::ReadValue( int                            theDocId,
-                                 const TCollection_AsciiString& theFileName,
-                                 const TCollection_AsciiString& theFormatName,
-                                 const TCollection_AsciiString& theParameterName )
+STEPPlugin_IECallBack::ReadValue( const TCollection_AsciiString& theFileName,
+                                  const TCollection_AsciiString& /*theFormatName*/,
+                                  const TCollection_AsciiString& theParameterName )
 {
-  STEPPlugin_IOperations* aPluginOperations = STEPPlugin_OperationsCreator::get( GetEngine(), theDocId );
+  STEPPlugin_IOperations* aPluginOperations = STEPPlugin_OperationsCreator::get( GetEngine() );
   return aPluginOperations->ReadValue( theFileName, theParameterName );
 }