# Scripts to be installed
dist_salomescript_PYTHON =\
SALOME_ComponentPy.py \
- SALOME_PyNode.py \
+ SALOME_PyNode.py \
SALOME_Container.py
# These files are executable scripts
-I$(srcdir)/../Notification \
-I$(srcdir)/../ResourcesManager \
-I$(srcdir)/../HDFPersist \
+ -I$(srcdir)/../GenericObj \
-I$(top_builddir)/idl \
@CORBA_CXXFLAGS@ @CORBA_INCLUDES@ @LIBXML_INCLUDES@
../SALOMELocalTrace/libSALOMELocalTrace.la \
../Basics/libSALOMEBasics.la \
../HDFPersist/libSalomeHDFPersist.la \
+ ../GenericObj/libSalomeGenericObj.la \
$(top_builddir)/idl/libSalomeIDLKernel.la \
@CORBA_LIBS@ \
$(PYTHON_LIBS)
#include "SALOME_Container.hxx"
+#include "SALOME_GenericObj_i.hh"
+
#include <SALOMEconfig.h>
#include CORBA_SERVER_HEADER(SALOME_Component)
#include <map>
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();
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)
# 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 \
-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@
-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 \
-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 \
-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 \
# 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 \
}
-void GenericObj_i::Destroy(){
+void GenericObj_i::UnRegister(){
if(MYDEBUG)
- MESSAGE("GenericObj_i::Destroy "<<this<<"; myRefCounter = "<<myRefCounter)
+ MESSAGE("GenericObj_i::UnRegister "<<this<<"; myRefCounter = "<<myRefCounter)
if(--myRefCounter <= 0){
PortableServer::ObjectId_var anObjectId = myPOA->servant_to_id(this);
myPOA->deactivate_object(anObjectId.in());
/*! Increase the reference count (mark as used by another object).*/
virtual void Register();
/*! Decrease the reference count (release by another object).*/
- virtual void Destroy();
+ virtual void UnRegister();
};
};
import SALOME
def mydel(self):
- self.Destroy()
+ self.UnRegister()
omniORB.CORBA.Object.__del__(self)
def mysetattr(self,attr,value):
-I$(srcdir)/../SALOMETraceCollector \
-I$(srcdir)/../NamingService \
-I$(srcdir)/../Utils \
+ -I$(srcdir)/../GenericObj \
-I$(srcdir)/../Container \
-I$(srcdir)/../ResourcesManager \
-I$(top_builddir)/idl \
../Utils/libOpUtil.la \
../SALOMELocalTrace/libSALOMELocalTrace.la \
../Basics/libSALOMEBasics.la \
+ ../GenericObj/libSalomeGenericObj.la \
$(top_builddir)/idl/libSalomeIDLKernel.la
#
-I$(srcdir)/../Notification \
-I$(srcdir)/../ResourcesManager \
-I$(srcdir)/../Container \
+ -I$(srcdir)/../GenericObj \
-I$(top_builddir)/idl \
@CORBA_CXXFLAGS@ @CORBA_INCLUDES@
../SALOMELocalTrace/libSALOMELocalTrace.la \
../Basics/libSALOMEBasics.la \
../Container/libSalomeContainer.la \
+ ../GenericObj/libSalomeGenericObj.la \
$(top_builddir)/idl/libSalomeIDLKernel.la\
@CORBA_LIBS@
SALOMEDS_ChildIterator::~SALOMEDS_ChildIterator()
{
- if(!_isLocal) _corba_impl->Destroy();
+ if(!_isLocal) _corba_impl->UnRegister();
else if(_local_impl) delete _local_impl;
}
SALOMEDS::unlock();
bool isOk = _driver->CanCopy(so.in());
- so->Destroy();
+ so->UnRegister();
SALOMEDS::lock();
return isOk;
SALOMEDS_GenericAttribute::~SALOMEDS_GenericAttribute()
{
if (!_isLocal) {
- _corba_impl->Destroy();
+ _corba_impl->UnRegister();
}
}
SALOMEDS_SComponentIterator::~SALOMEDS_SComponentIterator()
{
- if(!_isLocal) _corba_impl->Destroy();
+ if(!_isLocal) _corba_impl->UnRegister();
else if(_local_impl) delete _local_impl;
}
SALOMEDS_SObject::~SALOMEDS_SObject()
{
if (!_isLocal) {
- _corba_impl->Destroy();
+ _corba_impl->UnRegister();
}
else {
if(_local_impl) delete _local_impl;
catch (CORBA::Exception&)
{/*pass*/ }
}
- sco->Destroy();
+ sco->UnRegister();
}
//Does not need any more this iterator
- itcomponent->Destroy();
+ itcomponent->UnRegister();
_impl->Close();
SALOME::GenericObj_var aGeneric = SALOME::GenericObj::_narrow(obj);
//rnv: To avoid double deletion of the Salome Generic Objects:
//rnv: 1. First decrement of the reference count in the SALOMEDSImpl_AttributeIOR::~SALOMEDSImpl_AttributeIOR();
- //rnv: 2. Second decrement of the reference count in the next string : aGeneric->Destroy();
- //if (!CORBA::is_nil(aGeneric)) aGeneric->Destroy();
+ //rnv: 2. Second decrement of the reference count in the next string : aGeneric->UnRegister();
+ //if (!CORBA::is_nil(aGeneric)) aGeneric->UnRegister();
} catch (...) {}
}
SALOMEDS_UseCaseBuilder::~SALOMEDS_UseCaseBuilder()
{
- if(!_isLocal) _corba_impl->Destroy();
+ if(!_isLocal) _corba_impl->UnRegister();
}
bool SALOMEDS_UseCaseBuilder::Append(const _PTR(SObject)& theObject)
SALOMEDS_UseCaseIterator::~SALOMEDS_UseCaseIterator()
{
- if(!_isLocal) _corba_impl->Destroy();
+ if(!_isLocal) _corba_impl->UnRegister();
else if(_local_impl) delete _local_impl;
}
-I$(srcdir)/../Registry \
-I$(srcdir)/../Notification \
-I$(srcdir)/../ResourcesManager \
+ -I$(srcdir)/../GenericObj \
-I$(srcdir)/../Container \
-I$(top_builddir)/idl \
@CORBA_CXXFLAGS@ @CORBA_INCLUDES@
../Utils/libOpUtil.la \
../SALOMELocalTrace/libSALOMELocalTrace.la \
../Basics/libSALOMEBasics.la \
+ ../GenericObj/libSalomeGenericObj.la \
$(top_builddir)/idl/libSalomeIDLKernel.la
#
-I$(srcdir)/../ResourcesManager \
-I$(srcdir)/../Container \
-I$(srcdir)/../MPIContainer \
+ -I$(srcdir)/../GenericObj \
-I$(top_builddir)/idl \
@CORBA_CXXFLAGS@ @CORBA_INCLUDES@
../Basics/libSALOMEBasics.la \
../Container/libSalomeContainer.la \
../MPIContainer/libSalomeMPIContainer.la \
+ ../GenericObj/libSalomeGenericObj.la \
$(top_builddir)/idl/libSalomeIDLKernel.la\
@CORBA_LIBS@