X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FModel%2FModel_PluginManager.h;h=1819c56d5ac9902d2c20082a00bc72f5758aea05;hb=a6e18c9e2793cc467da1ce82e14487dca06653c1;hp=7f405573fea644010a96dc6c53757e2be75b83af;hpb=6654a921211670c15a79a997ca666a174fe8a6f6;p=modules%2Fshaper.git diff --git a/src/Model/Model_PluginManager.h b/src/Model/Model_PluginManager.h index 7f405573f..1819c56d5 100644 --- a/src/Model/Model_PluginManager.h +++ b/src/Model/Model_PluginManager.h @@ -7,6 +7,8 @@ #include "Model.h" #include +#include + #include #include @@ -26,6 +28,7 @@ class Model_PluginManager : public ModelAPI_PluginManager, public Events_Listene std::map myPluginObjs; ///< instances of the already plugins std::string myCurrentPluginName; ///< name of the plugin that must be loaded currently boost::shared_ptr myCurrentDoc; ///< current working document + bool myCheckTransactions; ///< if true, generates error if document is updated outside of transaction public: /// Returns the root document of the application (that may contains sub-documents) MODEL_EXPORT virtual boost::shared_ptr rootDocument(); @@ -47,6 +50,15 @@ public: /// Processes the configuration file reading MODEL_EXPORT virtual void processEvent(const Events_Message* theMessage); + /// Copies the document to the new one wit hthe given id + MODEL_EXPORT virtual boost::shared_ptr copy( + boost::shared_ptr 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 Model_PluginManager(); @@ -55,7 +67,7 @@ protected: void LoadPluginsInfo(); /// Creates the feature object using plugins functionality - virtual boost::shared_ptr createFeature(std::string theFeatureID); + virtual FeaturePtr createFeature(std::string theFeatureID); }; #endif