Salome HOME
Attaching a debug OCAF browser plugin
[modules/shaper.git] / src / Model / Model_PluginManager.h
index 4efef6a4cd5034c79e8ff69a405cc49b852ceb33..1819c56d5ac9902d2c20082a00bc72f5758aea05 100644 (file)
@@ -7,6 +7,8 @@
 
 #include "Model.h"
 #include <ModelAPI_PluginManager.h>
+#include <ModelAPI_Feature.h>
+
 #include <Events_Listener.h>
 #include <map>
 
@@ -52,6 +54,9 @@ public:
   MODEL_EXPORT virtual boost::shared_ptr<ModelAPI_Document> copy(
     boost::shared_ptr<ModelAPI_Document> theSource, std::string theID);
 
+  /// Returns the validators factory: the only one instance per application
+  MODEL_EXPORT virtual ModelAPI_ValidatorsFactory* validators();
+
   void setCheckTransactions(const bool theCheck) {myCheckTransactions = theCheck;}
 
   /// Is called only once, on startup of the application
@@ -62,7 +67,7 @@ protected:
   void LoadPluginsInfo();
 
   /// Creates the feature object using plugins functionality
-  virtual boost::shared_ptr<ModelAPI_Feature> createFeature(std::string theFeatureID);
+  virtual FeaturePtr createFeature(std::string theFeatureID);
 };
 
 #endif