]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/Model/Model_PluginManager.h
Salome HOME
Sources formated according to the codeing standards
[modules/shaper.git] / src / Model / Model_PluginManager.h
index 3ae74bfc1c52c5136f158b5038b01fc6462324b0..a1187a10b8a740ada293043f1a114804b6d5b94c 100644 (file)
@@ -22,14 +22,14 @@ class Model_Document;
  */
 class Model_PluginManager : public ModelAPI_PluginManager, public Events_Listener
 {
-  bool myPluginsInfoLoaded; ///< it true if plugins information is loaded
+  bool myPluginsInfoLoaded;  ///< it true if plugins information is loaded
   /// map of feature IDs to plugin name
   std::map<std::string, std::string> myPlugins;
-  std::map<std::string, ModelAPI_Plugin*> myPluginObjs; ///< instances of the already plugins
-  std::string myCurrentPluginName; ///< name of the plugin that must be loaded currently
-  boost::shared_ptr<ModelAPI_Document> myCurrentDoc; ///< current working document
-  bool myCheckTransactions; ///< if true, generates error if document is updated outside of transaction
-public:
+  std::map<std::string, ModelAPI_Plugin*> myPluginObjs;  ///< instances of the already plugins
+  std::string myCurrentPluginName;  ///< name of the plugin that must be loaded currently
+  boost::shared_ptr<ModelAPI_Document> 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<ModelAPI_Document> rootDocument();
 
@@ -52,17 +52,20 @@ public:
 
   /// Copies the document to the new one wit hthe given id
   MODEL_EXPORT virtual boost::shared_ptr<ModelAPI_Document> copy(
-    boost::shared_ptr<ModelAPI_Document> theSource, std::string theID);
+      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;}
+  void setCheckTransactions(const bool theCheck)
+  {
+    myCheckTransactions = theCheck;
+  }
 
   /// Is called only once, on startup of the application
   Model_PluginManager();
 
-protected:
+ protected:
   /// Loads (if not done yet) the information about the features and plugins
   void LoadPluginsInfo();