Salome HOME
Updated copyright comment
[modules/med.git] / src / MEDCalc / cmp / MEDFactory_i.cxx
index b41ef3a673dc013f337881689aee27a3e77eb3cd..fbfec3228043ad5f2b1b08ea599a209b9f948138 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2015  CEA/DEN, EDF R&D
+// Copyright (C) 2007-2024  CEA, EDF
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -37,8 +37,9 @@ MEDFactory_i::MEDFactory_i(CORBA::ORB_ptr orb,
                            PortableServer::POA_ptr poa,
                            PortableServer::ObjectId* contId,
                            const char* instanceName,
-                           const char* interfaceName)
-  : Engines_Component_i(orb, poa, contId, instanceName, interfaceName)
+                           const char* interfaceName,
+                                                  bool checkNS)
+  : Engines_Component_i(orb, poa, contId, instanceName, interfaceName, false, checkNS)
 {
   MESSAGE("activate object");
   _thisObj = this ;
@@ -81,21 +82,3 @@ MEDFactory_i::getCommandsHistoryManager()
   MEDCALC::MEDCommandsHistoryManager_ptr managerPtr = manager->_this();
   return managerPtr;
 }
-
-extern "C"
-{
-  PortableServer::ObjectId* MEDFactoryEngine_factory(
-             CORBA::ORB_ptr orb,
-             PortableServer::POA_ptr poa,
-             PortableServer::ObjectId* contId,
-             const char* instanceName,
-             const char* interfaceName)
-  {
-    MESSAGE("PortableServer::ObjectId * MEDEngine_factory()");
-    SCRUTE(interfaceName);
-    MEDFactory_i* factory = new MEDFactory_i(orb, poa, contId,
-                                             instanceName,
-                                             interfaceName);
-    return factory->getId() ;
-  }
-}