Salome HOME
Merge branch 'master' of newgeom:newgeom.git
[modules/shaper.git] / src / ModelAPI / ModelAPI_PluginManager.h
index fdf8e69eb47f0c84e70c48b70c7e31da52a60c76..3250bea97894ae162f2266645a16dbbd2ad47c6c 100644 (file)
@@ -23,10 +23,6 @@ class ModelAPI_Document;
 class MODELAPI_EXPORT ModelAPI_PluginManager
 {
 public:
-  /// Creates the feature object using plugins functionality
-  virtual std::shared_ptr<ModelAPI_Feature> createFeature(std::string theFeatureID,
-    const bool theAddToDoc = true) = 0;
-
   /// Returns the real implementation (the alone instance per application) of the plugin manager
   static std::shared_ptr<ModelAPI_PluginManager> get();
 
@@ -51,7 +47,12 @@ public:
   ModelAPI_PluginManager();
 
 protected:
+  /// Creates the feature object using plugins functionality
+  virtual std::shared_ptr<ModelAPI_Feature> createFeature(std::string theFeatureID) = 0;
+
   static void SetPluginManager(std::shared_ptr<ModelAPI_PluginManager> theManager);
+
+  friend class Model_Document;
 };
 
 #endif