From: jfa Date: Wed, 2 Mar 2011 08:13:49 +0000 (+0000) Subject: Rename Engines::Component to Engines::EngineComponent X-Git-Tag: V6_3_0a1~6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=92cf43e98ed316dde62687cd0b883fb5e1641abf;p=tools%2Fyacsgen.git Rename Engines::Component to Engines::EngineComponent --- diff --git a/Examples/cppgui1/cppcomposGUI.cxx b/Examples/cppgui1/cppcomposGUI.cxx index 47df890..676e655 100644 --- a/Examples/cppgui1/cppcomposGUI.cxx +++ b/Examples/cppgui1/cppcomposGUI.cxx @@ -38,7 +38,7 @@ void cppcomposGUI::initialize( CAM_Application* app ) SalomeApp_Module::initialize( app ); - Engines::Component_var comp = dynamic_cast(app)->lcc()->FindOrLoad_Component( "FactoryServer","cppcompos" ); + Engines::EngineComponent_var comp = dynamic_cast(app)->lcc()->FindOrLoad_Component( "FactoryServer","cppcompos" ); engine = cppcompos_ORB::cppcompos::_narrow(comp); QWidget* aParent = application()->desktop(); diff --git a/module_generator/cpp_tmpl.py b/module_generator/cpp_tmpl.py index cf028ba..aa604a3 100644 --- a/module_generator/cpp_tmpl.py +++ b/module_generator/cpp_tmpl.py @@ -236,7 +236,7 @@ extern "C" ${component}_i * myEngine = new ${component}_i(orb, poa, container, instanceName.c_str(), "${component}"); pman->activate(); obj=myEngine->POA_${module}_ORB::${component}::_this(); - Engines::Component_var component = Engines::Component::_narrow(obj); + Engines::EngineComponent_var component = Engines::EngineComponent::_narrow(obj); string component_registerName = containerName + "/" + instanceName; salomens->Register(component,component_registerName.c_str()); orb->run(); @@ -415,4 +415,3 @@ lib${component}Exelib_la_LIBADD = ${libs} -L$$(top_builddir)/idl -lSalomeIDL${ lib${component}Exelib_la_LDFLAGS = ${rlibs} """ compoEXEMakefile=Template(compoEXEMakefile) - diff --git a/module_generator/hxx_tmpl.py b/module_generator/hxx_tmpl.py index 3e25a10..1914b2b 100644 --- a/module_generator/hxx_tmpl.py +++ b/module_generator/hxx_tmpl.py @@ -68,7 +68,7 @@ char* ${component}_i::ComponentDataType() return CORBA::string_dup("${component}"); } -Engines::Component_ptr ${component}_i::GetComponentInstance() +Engines::EngineComponent_ptr ${component}_i::GetComponentInstance() { return ${component}_Gen::_this(); } @@ -125,7 +125,7 @@ public: ${servicesdef} // (re)defined methods of Driver - virtual Engines::Component_ptr GetComponentInstance(); + virtual Engines::EngineComponent_ptr GetComponentInstance(); char* ComponentDataType(); private: @@ -178,7 +178,7 @@ lib${component}Engine_la_LIBADD = ${libs} -L$$(top_builddir)/idl -lSalomeIDL${ #, SALOME_MED::MED_Gen_Driver, SALOME::MultiCommClass interfaceidlhxx=""" - interface ${component}_Gen:Engines::Component,SALOME::MultiCommClass ${inherited} + interface ${component}_Gen:Engines::EngineComponent,SALOME::MultiCommClass ${inherited} { ${services} }; diff --git a/module_generator/paco_tmpl.py b/module_generator/paco_tmpl.py index 72692ca..f136bad 100644 --- a/module_generator/paco_tmpl.py +++ b/module_generator/paco_tmpl.py @@ -162,12 +162,12 @@ ${component}_i::${component}_i(CORBA::ORB_ptr orb, InterfaceParallel_impl(orb,ior, rank), Engines::Superv_Component_serv(orb, ior, rank), Engines::DSC_serv(orb, ior, rank), - Engines::Component_serv(orb,ior, rank), + Engines::EngineComponent_serv(orb,ior, rank), Engines::Parallel_Component_serv(orb,ior, rank), Engines::Parallel_DSC_base_serv(orb, ior, rank), Engines::Superv_Component_base_serv(orb, ior, rank), Engines::DSC_base_serv(orb, ior, rank), - Engines::Component_base_serv(orb,ior, rank), + Engines::EngineComponent_base_serv(orb,ior, rank), Engines::Parallel_Component_base_serv(orb,ior, rank) {