]> SALOME platform Git repositories - plugins/acisplugin.git/blobdiff - src/ACISPlugin_ExportDriver.cxx
Salome HOME
OCCT 7.0.0 porting
[plugins/acisplugin.git] / src / ACISPlugin_ExportDriver.cxx
index 455033bc3f05a07d2a24e00a31abcf0a592d887f..4bfc181b5f1bf374d219b109000c28dd95d45a10 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2014  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2014-2015  OPEN CASCADE
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -20,7 +20,6 @@
 // internal includes
 #include "ACISPlugin_ExportDriver.hxx"
 #include "ACISPlugin_IExport.hxx"
-#include "ACISPlugin_Engine.hxx"
 
 // KERNEL includes
 #include <Basics_Utils.hxx>
@@ -34,6 +33,7 @@
 #include <SatControl_Writer.hxx>
 #include <TCollection_AsciiString.hxx>
 #include <TopoDS_Shape.hxx>
+#include <Standard_Version.hxx>
 
 #ifdef ACIS_HASLICENSE
 #include "ACISPlugin_license.h"
@@ -64,14 +64,14 @@ ACISPlugin_ExportDriver::ACISPlugin_ExportDriver()
 //function : Execute
 //purpose  :
 //=======================================================================
-Standard_Integer ACISPlugin_ExportDriver::Execute( TFunction_Logbook& log ) const
+Standard_Integer ACISPlugin_ExportDriver::Execute( LOGBOOK& log ) const
 {
 #ifdef ACIS_HASLICENSE
     try {
       OCCLicense_Activate("SAT-W-"OCC_VERSION_STRING, ACIS_WRITE_LICENSE);
     }
     catch (Standard_LicenseError) {
-      return 1;
+      return 0;
     }
 #endif // ACIS_HASLICENSE
 
@@ -108,15 +108,6 @@ Standard_Integer ACISPlugin_ExportDriver::Execute( TFunction_Logbook& log ) cons
     return 0;
 }
 
-//=======================================================================
-//function : MustExecute
-//purpose  :
-//=======================================================================
-Standard_Boolean ACISPlugin_ExportDriver::MustExecute( const TFunction_Logbook& ) const
-{
-  return Standard_True;
-}
-
 //================================================================================
 /*!
  * \brief Returns a name of creation operation and names and values of creation parameters
@@ -129,5 +120,4 @@ GetCreationInformation( std::string&             theOperationName,
   return false;
 }
 
-IMPLEMENT_STANDARD_HANDLE( ACISPlugin_ExportDriver,GEOM_BaseDriver );
-IMPLEMENT_STANDARD_RTTIEXT( ACISPlugin_ExportDriver,GEOM_BaseDriver );
+OCCT_IMPLEMENT_STANDARD_RTTIEXT( ACISPlugin_ExportDriver,GEOM_BaseDriver );