Version: 8.3.0
SALOME_Sender_i Class Reference

Generic servant class for senders that factorizes all the common methods and attributes necessary to senders. More...

#include <SALOME_Comm_i.hxx>

Inheritance diagram for SALOME_Sender_i:

Public Member Functions

const void * getData (long &size) const
 Return the C++ data associated to the array to transmit. More...
 
int getSizeOf () const
 Return the sizeof() of each component of the generic array. More...
 
void setOwnerShip (bool own)
 To force ownerShip status. More...
 
bool getOwnerShip () const
 
void release ()
 Method for the remote destroy of the current servant. More...
 
virtual ~SALOME_Sender_i ()
 

Protected Member Functions

 SALOME_Sender_i (const void *tabToSend, long lgrTabToSend, int sizeOf, bool ownTabToSend=false)
 Unique constructor. More...
 

Protected Attributes

const void * _tabToSend
 Pointer to the generic array to transmit. More...
 
long _lgrTabToSend
 Length of the generic array to transmit. More...
 
int _sizeOf
 it represents the sizeof() of each component of the generic array:
Practically in terms of bytes the size to be transmitted is _lgrTabToSend*_sizeOf More...
 
bool _ownTabToSend
 Indicates if _tabToSend has to be deallocated. More...
 

Detailed Description

Generic servant class for senders that factorizes all the common methods and attributes necessary to senders.

All servant classes for senders have to inheritate from it.

Constructor & Destructor Documentation

SALOME_Sender_i::SALOME_Sender_i ( const void *  tabToSend,
long  lgrTabToSend,
int  sizeOf,
bool  ownTabToSend = false 
)
protected

Unique constructor.

virtual SALOME_Sender_i::~SALOME_Sender_i ( )
virtual

Member Function Documentation

const void * SALOME_Sender_i::getData ( long &  size) const

Return the C++ data associated to the array to transmit.

Used when sender and receiver are collocalized.

References _lgrTabToSend, and _tabToSend.

Referenced by SenderFactory::buildSender().

bool SALOME_Sender_i::getOwnerShip ( ) const
int SALOME_Sender_i::getSizeOf ( ) const

Return the sizeof() of each component of the generic array.

References _sizeOf.

void SALOME_Sender_i::release ( )

Method for the remote destroy of the current servant.

This method is used by the receiver to destroy the sender when the transfert is complete.

void SALOME_Sender_i::setOwnerShip ( bool  own)

To force ownerShip status.

References _ownTabToSend.

Referenced by SenderFactory::buildSender().

Field Documentation

bool SALOME_Sender_i::_ownTabToSend
protected

Indicates if _tabToSend has to be deallocated.

Referenced by setOwnerShip(), SALOME_SenderDouble_i::~SALOME_SenderDouble_i(), and SALOME_SenderInt_i::~SALOME_SenderInt_i().

int SALOME_Sender_i::_sizeOf
protected

it represents the sizeof() of each component of the generic array:
Practically in terms of bytes the size to be transmitted is _lgrTabToSend*_sizeOf

Referenced by getSizeOf().