From 8fa1a15ed17177cee14e9eb24894ddfb29cb0a26 Mon Sep 17 00:00:00 2001 From: jfa Date: Mon, 28 Feb 2011 14:50:50 +0000 Subject: [PATCH] Rename Engines::Component to Engines::EngineComponent --- doc/salome/kernel_services.dox | 5 +- .../tui/KERNEL/HTML/SALOME_Component.html | 6 +- .../tui/KERNEL/HTML/SALOME_ModuleCatalog.html | 2 +- .../tui/KERNEL/HTML/SALOME_Session.html | 2 +- .../sources/static/examples_Kernel.html | 2 +- .../sources/static/examples_Life_cycle.html | 2 +- .../sources/static/examples_Naming.html | 2 +- .../sources/static/overview_Kernel.html | 8 +-- .../sources/static/overview_Life_Cycle.html | 2 +- .../tui/KERNEL/sources/static/tree.js.in | 6 +- idl/DSC_Engines.idl | 2 +- idl/SALOME_Component.idl | 64 +++++++++-------- idl/SALOME_Component.xml | 2 +- idl/SALOME_PACOExtension.idl | 6 +- idl/SALOME_Session.idl | 31 ++++----- idl/SALOME_TestComponent.idl | 11 ++- idl/SALOME_TestMPIComponent.idl | 2 +- idl/SALOME_TestModuleCatalog.idl | 7 +- src/Container/Container_i.cxx | 68 +++++++++---------- src/Container/SALOME_ComponentPy.py | 2 +- src/Container/SALOME_Component_i.hxx | 2 +- src/Container/SALOME_Container_i.hxx | 21 +++--- src/DSC/ParallelDSC/ParallelDSC_i.cxx | 4 +- src/LifeCycleCORBA/SALOME_LifeCycleCORBA.cxx | 63 ++++++++--------- src/LifeCycleCORBA/SALOME_LifeCycleCORBA.hxx | 20 +++--- .../Test/LifeCycleCORBATest.cxx | 34 +++++----- src/LifeCycleCORBA/TestContainerManager.cxx | 2 +- src/LifeCycleCORBA/Test_LifeCycleCORBA.cxx | 9 ++- .../libSALOME_LifeCycleCORBA.i | 3 +- src/MPIContainer/MPIContainer_i.cxx | 55 ++++++++------- src/MPIContainer/MPIContainer_i.hxx | 17 +++-- src/ModuleGenerator/README | 2 +- src/ModuleGenerator/tests/AddComponent.idl | 11 ++- src/ModuleGenerator/tests/SubComponent.idl | 5 +- .../SALOME_ParallelComponent_i.cxx | 5 +- .../SALOME_ParallelContainerProxy_i.cxx | 24 +++---- .../SALOME_ParallelContainerProxy_i.hxx | 20 +++--- .../SALOME_ParallelContainer_i.cxx | 56 ++++++++------- .../SALOME_ParallelContainer_i.hxx | 22 +++--- src/SALOMEDS/SALOMEDS_Driver_i.cxx | 3 +- 40 files changed, 289 insertions(+), 321 deletions(-) diff --git a/doc/salome/kernel_services.dox b/doc/salome/kernel_services.dox index 5e659cf58..5c1400e4f 100644 --- a/doc/salome/kernel_services.dox +++ b/doc/salome/kernel_services.dox @@ -174,7 +174,7 @@ See Batch documentation (in french only). -# Containers and component life cycle, File transfer service - Engines : engines CORBA module. - - Engines::Component : generic component interface. All %SALOME components inherit this interface. + - Engines::EngineComponent : generic component interface. All %SALOME components inherit this interface. - Engines::Container : host for C++ and Python components components instances - Engines::fileTransfer : agent for file transfer created by a container copy a local file to a distent client - Engines::fileRef : reference to a file, used by a container for file transfers @@ -202,7 +202,7 @@ See Batch documentation (in french only). . -# Other idl for test purposes - NSTEST : for naming service test - - SALOME_TestComponent.idl : for Component test + - SALOME_TestComponent.idl : for EngineComponent test - SALOME_TestModuleCatalog : for SALOME_ModuleCatalog test - SALOME_TestMPIComponent.idl : \copybrief SALOME_TestMPIComponent.idl - TestNotif.idl : \copybrief TestNotif.idl @@ -321,4 +321,3 @@ AttributePersistentRef interface(creations/saving/restoring)\n SALOMEDS methods : FindOrCreateAttribute, SaveAs, FindComponent FindAttribute Open\n Attribute methods : SetValue, Value */ - diff --git a/doc/salome/tui/KERNEL/HTML/SALOME_Component.html b/doc/salome/tui/KERNEL/HTML/SALOME_Component.html index 2d802860c..c08a8166c 100644 --- a/doc/salome/tui/KERNEL/HTML/SALOME_Component.html +++ b/doc/salome/tui/KERNEL/HTML/SALOME_Component.html @@ -11,11 +11,11 @@
return_value = start_impl ( ContainerName )
-
Component load_impl ( in string nameToRegister, in string componentName )
+
EngineComponent load_impl ( in string nameToRegister, in string componentName )
return_value = load_impl ( nameToRegister, componentName )
-
void remove_impl ( in Component component_i )
+
void remove_impl ( in EngineComponent component_i )
remove_impl ( component_i )
@@ -41,7 +41,7 @@
- + diff --git a/doc/salome/tui/KERNEL/HTML/SALOME_ModuleCatalog.html b/doc/salome/tui/KERNEL/HTML/SALOME_ModuleCatalog.html index 5f618eb1a..856aacc1d 100644 --- a/doc/salome/tui/KERNEL/HTML/SALOME_ModuleCatalog.html +++ b/doc/salome/tui/KERNEL/HTML/SALOME_ModuleCatalog.html @@ -67,7 +67,7 @@ - + diff --git a/doc/salome/tui/KERNEL/HTML/SALOME_Session.html b/doc/salome/tui/KERNEL/HTML/SALOME_Session.html index 37b46747d..3420dc238 100644 --- a/doc/salome/tui/KERNEL/HTML/SALOME_Session.html +++ b/doc/salome/tui/KERNEL/HTML/SALOME_Session.html @@ -11,7 +11,7 @@ - + diff --git a/doc/salome/tui/KERNEL/sources/static/examples_Kernel.html b/doc/salome/tui/KERNEL/sources/static/examples_Kernel.html index beb74ae4f..c9da77e75 100755 --- a/doc/salome/tui/KERNEL/sources/static/examples_Kernel.html +++ b/doc/salome/tui/KERNEL/sources/static/examples_Kernel.html @@ -84,7 +84,7 @@ interface


Component + href="interfaceEngines_1_1EngineComponent.html">EngineComponent load_impl (in string nameToRegister, in string componentName)

Load component with defined component name:
diff --git a/doc/salome/tui/KERNEL/sources/static/examples_Life_cycle.html b/doc/salome/tui/KERNEL/sources/static/examples_Life_cycle.html index 080112eb4..db2064945 100755 --- a/doc/salome/tui/KERNEL/sources/static/examples_Life_cycle.html +++ b/doc/salome/tui/KERNEL/sources/static/examples_Life_cycle.html @@ -55,7 +55,7 @@ to the root POA

      SALOME_LifeCycleCORBA _LCC(&_NS) ;

-      Engines::Component_var myComponent = _LCC.FindOrLoad_Component("FactoryServerPy","TestComponentPy");
+      Engines::EngineComponent_var myComponent = _LCC.FindOrLoad_Component("FactoryServerPy","TestComponentPy");
       if(!CORBA::is_nil(myComponent)){
          Engines::TestComponent_var myConcreateComponent = TestComponent::_narrow(myComponent);
diff --git a/doc/salome/tui/KERNEL/sources/static/examples_Naming.html b/doc/salome/tui/KERNEL/sources/static/examples_Naming.html index ac08a6753..4a495024e 100755 --- a/doc/salome/tui/KERNEL/sources/static/examples_Naming.html +++ b/doc/salome/tui/KERNEL/sources/static/examples_Naming.html @@ -59,7 +59,7 @@ myLocalVisu = myLifeCycleCORBA.FindOrLoadComponent("FactoryServer", "Visu")
SALOME_NamingService aNamingService(orb);
CORBA::Object_ptr anObject = aNamingService.Resolve("/Kernel/Session");
SALOME::Session_var aSession = SALOME::Session::_narrow(anObject);
-Engines::Component_var aComponent = aSession->GetVisuGen();
+Engines::EngineComponent_var aComponent = aSession->GetVisuGen();
myVisuGen = VISU::VISU_Gen::_narrow(aComponent);

diff --git a/doc/salome/tui/KERNEL/sources/static/overview_Kernel.html b/doc/salome/tui/KERNEL/sources/static/overview_Kernel.html index 7f64f4369..9351696cf 100755 --- a/doc/salome/tui/KERNEL/sources/static/overview_Kernel.html +++ b/doc/salome/tui/KERNEL/sources/static/overview_Kernel.html @@ -38,7 +38,7 @@
  • 3.6 Resource catalog
  • 3.7 Engine
  • @@ -174,13 +174,13 @@ name. The container dynamically resolves an extern_C function in the library, which constructs the CORBA Engine servant object.

    The SALOME engine in the current version of the application is implemented - as Engines package of interfaces. It encapsulates two classes: Component, Container.

    + as Engines package of interfaces. It encapsulates two classes: EngineComponent, Container.

    The API refernce for Engines package can be found here.

    -

    3.7.1 Component class

    +

    3.7.1 EngineComponent class

    This class is used for interaction between the container and the component and between the components inside the container.

    -

    The API reference for this class can be found here.

    +

    The API reference for this class can be found here.

    3.7.2 Container class

    This class provides a set of methods which are necessary for definition of the process of loading and registration of new components in SALOME application.

    diff --git a/doc/salome/tui/KERNEL/sources/static/overview_Life_Cycle.html b/doc/salome/tui/KERNEL/sources/static/overview_Life_Cycle.html index f1a1fb8af..41f3e8df6 100755 --- a/doc/salome/tui/KERNEL/sources/static/overview_Life_Cycle.html +++ b/doc/salome/tui/KERNEL/sources/static/overview_Life_Cycle.html @@ -51,7 +51,7 @@ life cycle operations on objects in different locations. This overview describes

    From general point of view, the SALOME Life Cycle service allows to find or load with the help of a given container a definte SALOME component with its further initialization and registration in the Naming service.

    Container - it's a certain engine realizing the mechanism of loading a SALOME module.

    -

    Component - it's a certain abstract shell wrapping SALOME modules, performing all operations concerned with their initialization and registration.

    +

    EngineComponent - it's a certain abstract shell wrapping SALOME modules, performing all operations concerned with their initialization and registration.

    From the point of view of the service user, the Life Cycle provides a set of functions allowing to :

    interface Component
    interface EngineComponent
    IDL file
    Python
    return_value = GetComponent ( componentname )
    Component GetComponentInfo ( in string componentName )
    EngineComponent GetComponentInfo ( in string componentName )
    return_value = GetComponentInfo ( componentName )
    GetInterface ( )
    Component GetVisuComponent ( )
    EngineComponent GetVisuComponent ( )
    return_value = GetVisuComponent ( )