Salome HOME
Avoid installing redundant files
[modules/geom.git] / src / XAOPlugin / XAOPlugin_Driver.cxx
index 607c7b3df3b1f49448601554c3d0d46159be5448..43a6b3ab89107134fb325c9862b580e97274fb5c 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2013-2015  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2013-2021  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
@@ -32,7 +32,6 @@
 
 // OCC includes
 #include <Standard_Stream.hxx>
-#include <TFunction_Logbook.hxx>
 #include <StdFail_NotDone.hxx>
 
 //=======================================================================
@@ -61,16 +60,10 @@ XAOPlugin_Driver::~XAOPlugin_Driver()
 {
 }
 
-Standard_Boolean XAOPlugin_Driver::MustExecute(const TFunction_Logbook&) const
-{
-  return Standard_True;
-}
-
-//=======================================================================
 //function : Execute
 //purpose  :
 //=======================================================================
-Standard_Integer XAOPlugin_Driver::Execute(TFunction_Logbook& log) const
+Standard_Integer XAOPlugin_Driver::Execute(Handle(TFunction_Logbook)& log) const
 {
   if (Label().IsNull()) return 0;
   Handle(GEOM_Function) function = GEOM_Function::GetFunction(Label());
@@ -95,7 +88,7 @@ Standard_Integer XAOPlugin_Driver::Execute(TFunction_Logbook& log) const
   if (shape.IsNull()) return 0;
   function->SetValue(shape);
 
-  log.SetTouched(Label());
+  log->SetTouched(Label());
 
   return 1;
 }
@@ -117,6 +110,5 @@ bool XAOPlugin_Driver::GetCreationInformation(std::string&             theOperat
   return true;
 }
 
-IMPLEMENT_STANDARD_HANDLE (XAOPlugin_Driver, GEOM_BaseDriver);
-IMPLEMENT_STANDARD_RTTIEXT(XAOPlugin_Driver, GEOM_BaseDriver);
+IMPLEMENT_STANDARD_RTTIEXT(XAOPlugin_Driver, GEOM_BaseDriver)