${MPI_LIBRARIES}
)
-ADD_LIBRARY(SalomeContainerServer SALOME_Container_Common.cxx SALOME_Container_SignalsHandler.cxx)
+ADD_LIBRARY(SalomeContainerServer SALOME_Container_SignalsHandler.cxx)
TARGET_LINK_LIBRARIES(SalomeContainerServer ${SALOME_Container_LIBS})
INSTALL(TARGETS SalomeContainerServer EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
-#include "SALOME_Container_Common.hxx"
+#include "SALOME_Container_Common.cxx"
#include "SALOME_NamingService.hxx"
+#include "SALOME_Container_i.hxx"
int main(int argc, char* argv[])
{
std::unique_ptr<SALOME_NamingService_Container_Abstract> ns;
- return container_common_main(argc,argv,std::move(ns));
+ return container_common_main<Engines_Container_i>(argc,argv,std::move(ns));
}
AttachDebugger();
}
+template<class ContainerServant>
int container_common_main(int argc, char* argv[], std::unique_ptr<SALOME_NamingService_Container_Abstract> ns)
{
setSSLMode(ns?!ns->IsTrueNS():false);
system(aCommand.str().c_str());
#endif
- new Engines_Container_i(orb, root_poa, containerName , argc , argv, ns.get() );
+ new ContainerServant(orb, root_poa, containerName , argc , argv, ns.get() );
ns.release();
pman->activate();
#include <memory>
+template<class ContainerServant>
int CONTAINER_EXPORT container_common_main(int argc, char* argv[], std::unique_ptr<SALOME_NamingService_Container_Abstract> ns);
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
-#include "SALOME_Container_Common.hxx"
+#include "SALOME_Container_Common.cxx"
+#include "SALOME_Container_i.hxx"
#include "SALOME_Embedded_NamingService_Client.hxx"
#include "Utils_SALOME_Exception.hxx"
#include "SALOME_KernelORB.hxx"
if( CORBA::is_nil(ns_serv_obj) )
THROW_SALOME_EXCEPTION( "SALOME_Container_No_NS_Serv : argument 2 is NOT a valid IOR of Engines::EmbeddedNamingService" );
std::unique_ptr<SALOME_NamingService_Container_Abstract> ns( new SALOME_Embedded_NamingService_Client(ns_serv_obj) );
- return container_common_main(argc,argv,std::move(ns));
+ return container_common_main<Engines_Container_SSL_i>(argc,argv,std::move(ns));
}
PortableServer::ObjectId * contId,
const char *instanceName,
const char *interfaceName,
- bool /*notif*/) : Engines_Component_i(orb,
+ bool notif) : Engines_Component_i(orb,
poa,
contId,
instanceName,
- interfaceName)
+ interfaceName,
+ notif,
+ false
+ )
{
#ifdef MYDEBUG
std::cerr << "--Engines_DSC_i: MARK 1 --" << instanceName << "----" << std::endl;
Engines::Container_ptr container,
const char *instanceName,
const char *interfaceName,
- bool notif = false,
- bool regist = true );
+ bool notif = false,
+ bool regist = false );
virtual ~Engines_DSC_i();
SALOME_DriverPy.SALOME_DriverPy_i.__init__(self, interfaceName)
# create the DSC proxy
self.proxy=calcium.PySupervCompo(orb,poa,contID,instanceName,interfaceName )
- # Store a reference on naming service in _naming_service attribute
- self._naming_service = SALOME_ComponentPy.SALOME_NamingServicePy_i( self._orb )
def init_service(self,service):
return True
const char *instanceName,
const char *interfaceName,
bool notif = false,
- bool regist = true );
+ bool regist = false );
virtual ~Superv_Component_i();
// Exceptions declarations.