study and/or give a direct access to those objects.
*/
+#include "SALOME_GenericObj.idl"
#include "SALOME_Exception.idl"
#include "SALOME_Component.idl"
#include "SALOMEDS.idl"
// mesh interface
// ----------------------
- interface MESH : SALOME::MultiCommClass, SALOME::ServantLifeCycle {
+ interface MESH : SALOME::MultiCommClass, SALOME::GenericObj {
// Index range begins from 1
// General Informations
// Support interface
// ----------------------
- interface SUPPORT : SALOME::MultiCommClass, SALOME::ServantLifeCycle {
+ interface SUPPORT : SALOME::MultiCommClass, SALOME::GenericObj {
/*!
Returns the name of the support.
// Field interface
//----------------
- interface FIELD : SALOME::ServantLifeCycle
+ interface FIELD : SALOME::GenericObj
{
/*!
}
}
-//=============================================================================
-/*!
- * CORBA: Destructor
-*/
-//=============================================================================
-void FIELD_i::release()
-{
- PortableServer::ObjectId_var oid=_default_POA()->servant_to_id(this);
- _default_POA()->deactivate_object(oid);
- _remove_ref();
-}
-
#include CORBA_SERVER_HEADER(SALOMEDS_Attributes)
#include "MEDMEM_Support_i.hxx"
-
#include "MEDMEM_convert.hxx"
-
#include "MEDMEM_Support.hxx"
#include "MEDMEM_Field.hxx"
namespace MEDMEM {
class FIELD_i: public virtual POA_SALOME_MED::FIELD,
- public PortableServer::RefCountServantBase
+ public SALOME::GenericObj_i
{
public :
static map < int, ::MEDMEM::FIELD_ * > fieldMap ;
void read (CORBA::Long i) throw (SALOME::SALOME_Exception);
void write (CORBA::Long i, const char* driverFieldName)
throw (SALOME::SALOME_Exception);
- void release();
// Cuisine Interne
MEDMEM::FIELD_ * constructConstField() const;
}
return false;
}
-
-//=============================================================================
-/*!
- * CORBA : Servant destruction
- */
-//=============================================================================
-void MESH_i::release()
-{
- PortableServer::ObjectId_var oid=_default_POA()->servant_to_id(this);
- _default_POA()->deactivate_object(oid);
- _remove_ref();
-}
#include <SALOMEconfig.h>
#include "SALOMEMultiComm.hxx"
+#include "SALOME_GenericObj_i.hh"
#include CORBA_SERVER_HEADER(MED)
#include CORBA_SERVER_HEADER(SALOMEDS_Attributes)
#include CORBA_SERVER_HEADER(SALOME_Comm)
namespace MEDMEM {
class MESH;
class MESH_i: public POA_SALOME_MED::MESH,
- public PortableServer::RefCountServantBase,
- public SALOMEMultiComm
+ public SALOMEMultiComm,
+ public SALOME::GenericObj_i
{
public :
static std::map < int,::MEDMEM::MESH *> meshMap;
throw (SALOME::SALOME_Exception);
CORBA::Boolean areEquals(SALOME_MED::MESH_ptr other);
- void release();
};
}
END_OF(LOC);
}
-//=============================================================================
-/*!
- * CORBA: release <=> remote delete this
- */
-//=============================================================================
-void SUPPORT_i::release()
-{
- PortableServer::ObjectId_var oid=_default_POA()->servant_to_id(this);
- _default_POA()->deactivate_object(oid);
- _remove_ref();
-}
#include <SALOMEconfig.h>
#include "SALOMEMultiComm.hxx"
+#include "SALOME_GenericObj_i.hh"
#include CORBA_SERVER_HEADER(MED)
#include CORBA_SERVER_HEADER(SALOME_Comm)
namespace MEDMEM {
class SUPPORT;
-class SUPPORT_i: public POA_SALOME_MED::SUPPORT,
- public PortableServer::RefCountServantBase,
- public SALOMEMultiComm
+ class SUPPORT_i: public POA_SALOME_MED::SUPPORT,
+ public SALOMEMultiComm,
+ public SALOME::GenericObj_i
{
public :
static std::map < int,::MEDMEM::SUPPORT *> supportMap;
CPPFLAGS+= $(MED2_INCLUDES) $(HDF5_INCLUDES) -I${KERNEL_ROOT_DIR}/include/salome
CXXFLAGS+= -I${KERNEL_ROOT_DIR}/include/salome
-LDFLAGS+=$(MED2_LIBS) $(HDF5_LIBS) -lmedmem -L${KERNEL_ROOT_DIR}/lib/salome -lSALOMELocalTrace -L${KERNEL_ROOT_DIR}/lib/salome -lSALOMELocalTrace -lSalomeCommunication
+LDFLAGS+=$(MED2_LIBS) $(HDF5_LIBS) -lmedmem -L${KERNEL_ROOT_DIR}/lib/salome -lSALOMELocalTrace -L${KERNEL_ROOT_DIR}/lib/salome -lSALOMELocalTrace -lSalomeCommunication -lSalomeGenericObj
#LDFLAGS+=-lmedmem -L. -lSalomeContainer -lSalomeNS -lRegistry -lOpUtil -lSalomeNotification
# does we put only -lSalomeContainer and compiler retrieves -lSalomeNS -lRegistry -lOpUtil ????