X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModelAPI%2FModelAPI_Plugin.h;h=5222b4c7b5edcd23582cdffbd6933428784cb4a7;hb=a5a4efb5a57703a634a60c097b6ab9179a04e6d4;hp=f26cab7b0d794df8c6c0a8921f065d3e94edb707;hpb=b0d2c2eb9107fe9e69b321bfc0ecba9cb5eab961;p=modules%2Fshaper.git diff --git a/src/ModelAPI/ModelAPI_Plugin.h b/src/ModelAPI/ModelAPI_Plugin.h index f26cab7b0..5222b4c7b 100644 --- a/src/ModelAPI/ModelAPI_Plugin.h +++ b/src/ModelAPI/ModelAPI_Plugin.h @@ -2,12 +2,12 @@ // Created: 31 Mar 2014 // Author: Mikhail PONIKAROV -#ifndef ModelAPI_Plugin_HeaderFile -#define ModelAPI_Plugin_HeaderFile +#ifndef ModelAPI_Plugin_H_ +#define ModelAPI_Plugin_H_ #include "ModelAPI.h" #include -#include +#include class ModelAPI_Feature; @@ -18,14 +18,21 @@ class ModelAPI_Feature; 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, const bool theAddToDoc) = 0; + virtual boost::shared_ptr createFeature(std::string theFeatureID) = 0; -protected: + /// To virtually destroy the fields of successors + virtual ~ModelAPI_Plugin() + { + } + + protected: /// Is needed for python wrapping by swig - ModelAPI_Plugin() {}; + ModelAPI_Plugin() + { + } + ; }; #endif