Salome HOME
Fix for naming in Build features.
[modules/shaper.git] / src / ModelAPI / ModelAPI_Plugin.h
index 0605d8b6f1997c5bedc6f5a18b965ec709dc5e71..de421e726c29c176b12a5adf2ababa5aee625712 100644 (file)
@@ -1,9 +1,11 @@
-// File:        ModelAPI_Plugin.hxx
+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
+
+// File:        ModelAPI_Plugin.h
 // 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>
@@ -15,16 +17,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<ModelAPI_Feature> 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