From: ribes Date: Mon, 2 May 2011 09:40:56 +0000 (+0000) Subject: PaCO++ for V6_3 X-Git-Tag: V6_3_0b1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=af206e3d05b71bbf43f8642c6402417b0fa3145e;p=tools%2Fyacsgen.git PaCO++ for V6_3 --- diff --git a/module_generator/cata_tmpl.py b/module_generator/cata_tmpl.py index c9ca28e..e247ae2 100644 --- a/module_generator/cata_tmpl.py +++ b/module_generator/cata_tmpl.py @@ -73,7 +73,7 @@ xml="""\ - ${module} + ${module}_ORB ${interfaces} diff --git a/module_generator/paco_tmpl.py b/module_generator/paco_tmpl.py index 3ca87c6..659e152 100644 --- a/module_generator/paco_tmpl.py +++ b/module_generator/paco_tmpl.py @@ -29,7 +29,7 @@ except: compoMakefile=""" include $$(top_srcdir)/adm_local/make_common_starter.am -BUILT_SOURCES = SALOME_Exception.hxx SALOME_GenericObj.hxx SALOMEDS.hxx SALOME_PyNode.hxx +BUILT_SOURCES = SALOME_Exception.hxx SALOME_GenericObj.hxx SALOMEDS.hxx SALOME_PyNode.hxx SALOME_Comm.hxx SALOME_Parametric.hxx %.hxx : @KERNEL_ROOT_DIR@/idl/salome/%.idl \t$$(OMNIORB_IDL) -bcxx $$(IDLCXXFLAGS) $$(OMNIORB_IDLCXXFLAGS) $$(IDL_INCLUDES) -I@KERNEL_ROOT_DIR@/idl/salome -Wbh=.hxx -Wbs=.cxx $$< @@ -40,14 +40,14 @@ lib_LTLIBRARIES = lib${component}Engine.la lib${component}Engine_la_SOURCES = ${component}.cxx ${sources} nodist_lib${component}Engine_la_SOURCES = lib${component}Engine_la_CXXFLAGS = -I$$(top_builddir)/idl $$(SALOME_INCLUDES) $$(PACO_INCLUDES) $$(MPI_INCLUDES) ${includes} -lib${component}Engine_la_LIBADD = -L$$(top_builddir)/idl -l${module} @KERNEL_ROOT_DIR@/lib/salome/libSalomeParallelDSCContainer.la @PACOPATH@/lib/libPaCO_direct_comScheduling.la $$(FLIBS) ${libs} $$(PACO_LIBS) $$(SALOME_LIBS) +lib${component}Engine_la_LIBADD = -L$$(top_builddir)/idl -lSalomeIDL${module} @KERNEL_ROOT_DIR@/lib/salome/libSalomeParallelDSCContainer.la @PACOPATH@/lib/libPaCO_direct_comScheduling.la $$(FLIBS) ${libs} $$(PACO_LIBS) $$(SALOME_LIBS) lib${component}Engine_la_LDFLAGS = ${rlibs} salomeinclude_HEADERS = ${component}.hxx """ compoMakefile=Template(compoMakefile) paco_sources = """\ -$$(top_builddir)/idl/${module}PaCO_${module}_${component}_client.cxx $$(top_builddir)/idl/${module}PaCO_${module}_${component}_server.cxx $$(top_builddir)/idl/${module}PaCO.cxx $$(top_builddir)/idl/${module}.cxx +$$(top_builddir)/idl/${module}PaCO_${module}_ORB_${component}_client.cxx $$(top_builddir)/idl/${module}PaCO_${module}_ORB_${component}_server.cxx $$(top_builddir)/idl/${module}PaCO.cxx $$(top_builddir)/idl/${module}.cxx """ paco_sources = Template(paco_sources) @@ -55,7 +55,7 @@ hxxCompo=""" #ifndef _${component}_HXX_ #define _${component}_HXX_ -#include "${module}PaCO_${module}_${component}_server.hxx" +#include "${module}PaCO_${module}_ORB_${component}_server.hxx" #include "ParallelDSC_i.hxx" #include "Param_Double_Port_uses_i.hxx" #include "Param_Double_Port_provides_i.hxx" @@ -67,7 +67,7 @@ hxxCompo=""" #include class ${component}_i: - public virtual ${module}::${component}_serv, + public virtual ${module}_ORB::${component}_serv, public virtual Engines_ParallelDSC_i { public: @@ -154,8 +154,8 @@ ${component}_i::${component}_i(CORBA::ORB_ptr orb, PortableServer::ObjectId * contId, const char *instanceName, const char *interfaceName) : - ${module}::${component}_serv(orb, ior, rank), - ${module}::${component}_base_serv(orb, ior, rank), + ${module}_ORB::${component}_serv(orb, ior, rank), + ${module}_ORB::${component}_base_serv(orb, ior, rank), Engines_ParallelDSC_i(orb, ior, rank, poa, contId, instanceName, interfaceName), Engines_Parallel_Component_i(orb, ior, rank, poa, contId, instanceName, interfaceName), Engines::Parallel_DSC_serv(orb, ior, rank), @@ -338,7 +338,7 @@ extern "C" paco_fabrique_manager* pfm = paco_getFabriqueManager(); pfm->register_com("proxy_dummy", new paco_dummy_fabrique()); pfm->register_thread("proxy_thread", new paco_omni_fabrique()); - ${module}::${component}_proxy_impl * proxy = new ${module}::${component}_proxy_impl(CORBA::ORB::_duplicate(orb), + ${module}_ORB::${component}_proxy_impl * proxy = new ${module}_ORB::${component}_proxy_impl(CORBA::ORB::_duplicate(orb), fab_thread); PortableServer::ObjectId * id = poa->activate_object(proxy); proxy->_remove_ref(); @@ -397,7 +397,7 @@ extern "C" paco_fabrique_manager* pfm = paco_getFabriqueManager(); pfm->register_com("proxy_dummy", new paco_dummy_fabrique()); pfm->register_thread("proxy_thread", new paco_omni_fabrique()); - ${module}::${component}_proxy_impl * proxy = new ${module}::${component}_proxy_impl(CORBA::ORB::_duplicate(orb), + ${module}_ORB::${component}_proxy_impl * proxy = new ${module}_ORB::${component}_proxy_impl(CORBA::ORB::_duplicate(orb), fab_thread); PortableServer::ObjectId * id = poa->activate_object(proxy); proxy->_remove_ref();