Salome HOME
[MEDCALC] Dump Python
[modules/med.git] / src / MEDCalc / cmp / MEDFactoryClient.cxx
index 747286ac5a950d7ee7f0780ef96da31bad10e6d0..4a03f68500c729162bf93139df354698f02508c6 100644 (file)
@@ -70,4 +70,15 @@ namespace MEDFactoryClient {
     return presentationManager;
   }
 
+  /*!
+   * This returns a singleton (static) instance of the MED commands history.
+   */
+  MEDCALC::MEDCommandsHistoryManager_ptr getCommandsHistoryManager() {
+    static MEDCALC::MEDCommandsHistoryManager_ptr commandsHistoryManager;
+    if(CORBA::is_nil(commandsHistoryManager)){
+      commandsHistoryManager = getFactory()->getCommandsHistoryManager();
+    }
+    return commandsHistoryManager;
+  }
+
 }