From: vsr Date: Fri, 4 Mar 2011 15:00:41 +0000 (+0000) Subject: 1. SALOME::GenericObj : Destroy() -> UnRegister() X-Git-Tag: Start_BR_19998_21191~26 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c8801f4c49a0dd5a4832af085828bb23a1e39eb9;p=modules%2Fkernel.git 1. SALOME::GenericObj : Destroy() -> UnRegister() 2. Introduce interfaces ExportableObject and ImportableComponent interfaces 3. Inherit fileTransfer from SALOME::GenericObj --- diff --git a/src/Container/Makefile.am b/src/Container/Makefile.am index fdffc037c..349274422 100644 --- a/src/Container/Makefile.am +++ b/src/Container/Makefile.am @@ -47,7 +47,7 @@ salomeinclude_HEADERS = \ # Scripts to be installed dist_salomescript_PYTHON =\ SALOME_ComponentPy.py \ - SALOME_PyNode.py \ + SALOME_PyNode.py \ SALOME_Container.py # These files are executable scripts @@ -72,6 +72,7 @@ COMMON_CPPFLAGS=\ -I$(srcdir)/../Notification \ -I$(srcdir)/../ResourcesManager \ -I$(srcdir)/../HDFPersist \ + -I$(srcdir)/../GenericObj \ -I$(top_builddir)/idl \ @CORBA_CXXFLAGS@ @CORBA_INCLUDES@ @LIBXML_INCLUDES@ @@ -86,6 +87,7 @@ COMMON_LIBS =\ ../SALOMELocalTrace/libSALOMELocalTrace.la \ ../Basics/libSALOMEBasics.la \ ../HDFPersist/libSalomeHDFPersist.la \ + ../GenericObj/libSalomeGenericObj.la \ $(top_builddir)/idl/libSalomeIDLKernel.la \ @CORBA_LIBS@ \ $(PYTHON_LIBS) diff --git a/src/Container/SALOME_FileTransfer_i.hxx b/src/Container/SALOME_FileTransfer_i.hxx index 8b599f663..624b75243 100644 --- a/src/Container/SALOME_FileTransfer_i.hxx +++ b/src/Container/SALOME_FileTransfer_i.hxx @@ -30,6 +30,8 @@ #include "SALOME_Container.hxx" +#include "SALOME_GenericObj_i.hh" + #include #include CORBA_SERVER_HEADER(SALOME_Component) #include @@ -37,7 +39,8 @@ class CONTAINER_EXPORT fileTransfer_i: public virtual POA_Engines::fileTransfer, - public virtual PortableServer::ServantBase + public virtual PortableServer::ServantBase, + public virtual SALOME::GenericObj_i { public: fileTransfer_i(); diff --git a/src/Container/SALOME_PyNode.py b/src/Container/SALOME_PyNode.py index d0f8f5273..d501223df 100644 --- a/src/Container/SALOME_PyNode.py +++ b/src/Container/SALOME_PyNode.py @@ -40,7 +40,7 @@ class Generic(SALOME__POA.GenericObj): def Register(self): self.cnt+=1 - def Destroy(self): + def UnRegister(self): self.cnt-=1 if self.cnt <= 0: oid=self.poa.servant_to_id(self) diff --git a/src/DSC/DSC_Basic/Makefile.am b/src/DSC/DSC_Basic/Makefile.am index c584eff3c..789063e65 100644 --- a/src/DSC/DSC_Basic/Makefile.am +++ b/src/DSC/DSC_Basic/Makefile.am @@ -46,6 +46,7 @@ salomeinclude_HEADERS = ConnectionManager_i.hxx \ # This local variable defines the list of CPPFLAGS common to all target in this package. COMMON_CPPFLAGS= -I$(top_srcdir)/src/Container \ + -I$(top_srcdir)/src/GenericObj \ -I$(top_srcdir)/src/Notification \ -I$(top_srcdir)/src/SALOMELocalTrace \ -I$(top_srcdir)/src/Basics \ diff --git a/src/DSC/DSC_Python/Makefile.am b/src/DSC/DSC_Python/Makefile.am index fc96419a9..068b35699 100644 --- a/src/DSC/DSC_Python/Makefile.am +++ b/src/DSC/DSC_Python/Makefile.am @@ -42,6 +42,7 @@ COMMON_CPPFLAGS= -I$(top_srcdir)/src/DSC/DSC_User \ -I$(top_srcdir)/src/Basics \ -I$(top_srcdir)/src/Utils \ -I$(top_srcdir)/src/Container \ + -I$(top_srcdir)/src/GenericObj \ -I$(top_srcdir)/src/Notification \ -I$(top_builddir)/idl \ @CORBA_CXXFLAGS@ @CORBA_INCLUDES@ @BOOST_CPPFLAGS@ diff --git a/src/DSC/DSC_User/Basic/Makefile.am b/src/DSC/DSC_User/Basic/Makefile.am index def7af510..c6c5534cf 100644 --- a/src/DSC/DSC_User/Basic/Makefile.am +++ b/src/DSC/DSC_User/Basic/Makefile.am @@ -47,6 +47,7 @@ COMMON_CPPFLAGS= -I$(top_builddir)/idl \ -I$(top_srcdir)/src/DSC/DSC_Basic \ -I$(top_srcdir)/src/DSC/DSC_User \ -I$(top_srcdir)/src/Container \ + -I$(top_srcdir)/src/GenericObj \ -I$(top_srcdir)/src/Notification \ -I$(top_srcdir)/src/SALOMELocalTrace \ -I$(top_srcdir)/src/Basics \ diff --git a/src/DSC/DSC_User/Datastream/Calcium/Makefile.am b/src/DSC/DSC_User/Datastream/Calcium/Makefile.am index ffcbce1df..0760bb29a 100644 --- a/src/DSC/DSC_User/Datastream/Calcium/Makefile.am +++ b/src/DSC/DSC_User/Datastream/Calcium/Makefile.am @@ -89,6 +89,7 @@ COMMON_CPPFLAGS= -I$(top_srcdir)/src/DSC/DSC_User \ -I$(top_srcdir)/src/Basics \ -I$(top_srcdir)/src/Utils \ -I$(top_srcdir)/src/Container \ + -I$(top_srcdir)/src/GenericObj \ -I$(top_srcdir)/src/Notification \ -I$(top_builddir)/idl \ -I$(top_builddir)/src/DSC/DSC_User/Datastream/Calcium \ diff --git a/src/DSC/DSC_User/Datastream/Palm/Makefile.am b/src/DSC/DSC_User/Datastream/Palm/Makefile.am index 0ab71953e..f74cd82a8 100644 --- a/src/DSC/DSC_User/Datastream/Palm/Makefile.am +++ b/src/DSC/DSC_User/Datastream/Palm/Makefile.am @@ -48,6 +48,7 @@ COMMON_CPPFLAGS= -I$(top_srcdir)/src/DSC/DSC_User \ -I$(top_srcdir)/src/DSC/DSC_User/Datastream \ -I$(top_srcdir)/src/DSC/DSC_Basic \ -I$(top_srcdir)/src/Container \ + -I$(top_srcdir)/src/GenericObj \ -I$(top_srcdir)/src/Notification \ -I$(top_srcdir)/src/SALOMELocalTrace \ -I$(top_srcdir)/src/Basics \ diff --git a/src/DSC/DSC_User/Makefile.am b/src/DSC/DSC_User/Makefile.am index b31e6b3fc..7c4193338 100644 --- a/src/DSC/DSC_User/Makefile.am +++ b/src/DSC/DSC_User/Makefile.am @@ -48,6 +48,7 @@ salomeinclude_HEADERS = base_port.hxx \ # This local variable defines the list of CPPFLAGS common to all target in this package. COMMON_CPPFLAGS= \ -I$(top_srcdir)/src/Container \ + -I$(top_srcdir)/src/GenericObj \ -I$(top_srcdir)/src/Notification \ -I$(top_srcdir)/src/DSC/DSC_Basic \ -I$(top_srcdir)/src/SALOMELocalTrace \ diff --git a/src/GenericObj/SALOME_GenericObj_i.cc b/src/GenericObj/SALOME_GenericObj_i.cc index 1e41fbcb0..0f0ad93ba 100644 --- a/src/GenericObj/SALOME_GenericObj_i.cc +++ b/src/GenericObj/SALOME_GenericObj_i.cc @@ -63,9 +63,9 @@ void GenericObj_i::Register(){ } -void GenericObj_i::Destroy(){ +void GenericObj_i::UnRegister(){ if(MYDEBUG) - MESSAGE("GenericObj_i::Destroy "<