Salome HOME
updated copyright message
[modules/med.git] / src / MEDCalc / cmp / MEDFactory_i.hxx
index 0fa3488ccaedb4eb534d388ce64afb6fb5a44af0..d3ad39d78e0a33193be1dcf97a009be15435d07b 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2015  CEA/DEN, EDF R&D
+// Copyright (C) 2007-2023  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -27,6 +27,7 @@
 #include CORBA_SERVER_HEADER(MEDDataManager)
 #include CORBA_SERVER_HEADER(MEDCalculator)
 #include CORBA_SERVER_HEADER(MEDPresentationManager)
+#include CORBA_SERVER_HEADER(MEDCommandsHistoryManager)
 #include "SALOME_Component_i.hxx"
 
 #include "MEDCALC.hxx"
@@ -35,28 +36,23 @@ class MEDCALC_EXPORT MEDFactory_i: public POA_MEDCALC::MEDFactory,
 {
 
 public:
+
   MEDFactory_i(CORBA::ORB_ptr orb,
                PortableServer::POA_ptr poa,
                PortableServer::ObjectId * contId,
                const char *instanceName,
-               const char *interfaceName);
+               const char *interfaceName,
+                          bool checkNS = true);
   virtual ~MEDFactory_i();
 
   /*! Returns the singleton instance of the data manager */
   MEDCALC::MEDDataManager_ptr getDataManager();
   /*! Returns the singleton instance of the calculator */
   MEDCALC::MEDCalculator_ptr getCalculator();
-  /*! Returns the singleton instance of the prsentation manager */
+  /*! Returns the singleton instance of the presentation manager */
   MEDCALC::MEDPresentationManager_ptr getPresentationManager();
-
+  /*! Returns the singleton instance of the commands history manager */
+  MEDCALC::MEDCommandsHistoryManager_ptr getCommandsHistoryManager();
 };
 
-extern "C"
-MEDCALC_EXPORT PortableServer::ObjectId *
-MEDFactoryEngine_factory(CORBA::ORB_ptr orb,
-                         PortableServer::POA_ptr poa,
-                         PortableServer::ObjectId * contId,
-                         const char *instanceName,
-                         const char *interfaceName);
-
 #endif