X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModelAPI%2FModelAPI_Plugin.h;h=a2a68701e4a638b7dd862f3ee4a9222d5042c1ed;hb=1fd15bed1c62f994a3438bc4a12f44d0361f98c9;hp=0605d8b6f1997c5bedc6f5a18b965ec709dc5e71;hpb=24fd5aa4e000a03e484c5d4c544e5e08b08a747f;p=modules%2Fshaper.git diff --git a/src/ModelAPI/ModelAPI_Plugin.h b/src/ModelAPI/ModelAPI_Plugin.h index 0605d8b6f..a2a68701e 100644 --- a/src/ModelAPI/ModelAPI_Plugin.h +++ b/src/ModelAPI/ModelAPI_Plugin.h @@ -1,9 +1,24 @@ -// File: ModelAPI_Plugin.hxx -// Created: 31 Mar 2014 -// Author: Mikhail PONIKAROV +// Copyright (C) 2014-2021 CEA/DEN, EDF R&D +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// +// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com +// -#ifndef ModelAPI_Plugin_HeaderFile -#define ModelAPI_Plugin_HeaderFile +#ifndef ModelAPI_Plugin_H_ +#define ModelAPI_Plugin_H_ #include "ModelAPI.h" #include @@ -15,16 +30,14 @@ class ModelAPI_Feature; * \ingroup DataModel * \brief Interface common for any plugin: allows to use plugin by the plugins manager. */ - class MODELAPI_EXPORT ModelAPI_Plugin { -public: + public: /// Creates the feature object of this plugin by the feature string ID virtual std::shared_ptr createFeature(std::string theFeatureID) = 0; -protected: - /// Is needed for python wrapping by swig - ModelAPI_Plugin() {}; + /// To virtually destroy the fields of successors + virtual ~ModelAPI_Plugin(); }; #endif