Generic servant class for senders that factorizes all the common methods and attributes necessary to senders. More...
#include <SALOME_Comm_i.hxx>

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... | |
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.
      
  | 
  protected | 
Unique constructor.
      
  | 
  virtual | 
| 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 | 
Referenced by SenderFactory::buildSender().
| 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 | ) | 
      
  | 
  protected | 
Length of the generic array to transmit.
Referenced by getData(), SALOME_CorbaDoubleNCSender_i::getSize(), SALOME_CorbaDoubleCSender_i::getSize(), SALOME_CorbaLongNCSender_i::getSize(), SALOME_CorbaLongCSender_i::getSize(), SALOME_CorbaDoubleNCSender_i::send(), and SALOME_CorbaLongNCSender_i::send().
      
  | 
  protected | 
Indicates if _tabToSend has to be deallocated.
Referenced by setOwnerShip(), SALOME_SenderDouble_i::~SALOME_SenderDouble_i(), and SALOME_SenderInt_i::~SALOME_SenderInt_i().
      
  | 
  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().
      
  | 
  protected | 
Pointer to the generic array to transmit.
Referenced by getData(), SALOME_CorbaDoubleNCSender_i::send(), SALOME_CorbaLongNCSender_i::send(), SALOME_CorbaDoubleNCSender_i::sendPart(), SALOME_CorbaDoubleCSender_i::sendPart(), SALOME_CorbaLongNCSender_i::sendPart(), SALOME_CorbaLongCSender_i::sendPart(), SALOME_SenderDouble_i::~SALOME_SenderDouble_i(), and SALOME_SenderInt_i::~SALOME_SenderInt_i().