// 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 <string>
class MODELAPI_EXPORT ModelAPI_Plugin
{
-public:
+ public:
/// Creates the feature object of this plugin by the feature string ID
virtual boost::shared_ptr<ModelAPI_Feature> 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