Servant class for CORBA sender for int* when no copy of array _tabToSend is required, that is to say int and CORBA::Long are binary equal. More...
#include <SALOME_Comm_i.hxx>
Public Member Functions | |
SALOME_CorbaLongNCSender_i (const int *tabToSend, long lgrTabToSend, bool ownTabToSend=false) | |
~SALOME_CorbaLongNCSender_i () | |
CORBA::ULong | getSize () |
SALOME::vectorOfLong * | sendPart (CORBA::ULong offset, CORBA::ULong length) |
SALOME::vectorOfLong * | send () |
SALOME::TypeOfDataTransmitted | getTypeOfDataTransmitted () |
SALOME::SenderInt_ptr | buildOtherWithProtocol (SALOME::TypeOfCommunication type) |
Return a new sender of the same array but with an another protocol. More... | |
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... | |
Static Public Member Functions | |
static SALOME_SenderInt_i * | find (SALOME::SenderInt_ptr pCorba) |
Method to establish if the CORBA object refered by pCorba is collocalised. 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... | |
Servant class for CORBA sender for int* when no copy of array _tabToSend is required, that is to say int and CORBA::Long are binary equal.
SALOME_CorbaLongNCSender_i::SALOME_CorbaLongNCSender_i | ( | const int * | tabToSend, |
long | lgrTabToSend, | ||
bool | ownTabToSend = false |
||
) |
SALOME_CorbaLongNCSender_i::~SALOME_CorbaLongNCSender_i | ( | ) |
|
inherited |
Return a new sender of the same array but with an another protocol.
References SenderFactory::buildSender().
|
staticinherited |
Method to establish if the CORBA object refered by pCorba is collocalised.
If it is, the pointer to the servant that incarnates the CORBA object is returned.
|
inherited |
Return the C++ data associated to the array to transmit.
Used when sender and receiver are collocalized.
References SALOME_Sender_i::_lgrTabToSend, and SALOME_Sender_i::_tabToSend.
Referenced by SenderFactory::buildSender().
|
inherited |
Referenced by SenderFactory::buildSender().
CORBA::ULong SALOME_CorbaLongNCSender_i::getSize | ( | ) |
References SALOME_Sender_i::_lgrTabToSend.
|
inherited |
Return the sizeof() of each component of the generic array.
References SALOME_Sender_i::_sizeOf.
|
inherited |
|
inherited |
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.
SALOME::vectorOfLong * SALOME_CorbaLongNCSender_i::send | ( | ) |
References SALOME_Sender_i::_lgrTabToSend, and SALOME_Sender_i::_tabToSend.
SALOME::vectorOfLong * SALOME_CorbaLongNCSender_i::sendPart | ( | CORBA::ULong | offset, |
CORBA::ULong | length | ||
) |
References SALOME_Sender_i::_tabToSend.
|
inherited |
To force ownerShip status.
References SALOME_Sender_i::_ownTabToSend.
Referenced by SenderFactory::buildSender().
|
protectedinherited |
Length of the generic array to transmit.
Referenced by SALOME_Sender_i::getData(), SALOME_CorbaDoubleNCSender_i::getSize(), SALOME_CorbaDoubleCSender_i::getSize(), getSize(), SALOME_CorbaLongCSender_i::getSize(), SALOME_CorbaDoubleNCSender_i::send(), and send().
|
protectedinherited |
Indicates if _tabToSend has to be deallocated.
Referenced by SALOME_Sender_i::setOwnerShip(), SALOME_SenderDouble_i::~SALOME_SenderDouble_i(), and SALOME_SenderInt_i::~SALOME_SenderInt_i().
|
protectedinherited |
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 SALOME_Sender_i::getSizeOf().
|
protectedinherited |
Pointer to the generic array to transmit.
Referenced by SALOME_Sender_i::getData(), SALOME_CorbaDoubleNCSender_i::send(), send(), SALOME_CorbaDoubleNCSender_i::sendPart(), SALOME_CorbaDoubleCSender_i::sendPart(), sendPart(), SALOME_CorbaLongCSender_i::sendPart(), SALOME_SenderDouble_i::~SALOME_SenderDouble_i(), and SALOME_SenderInt_i::~SALOME_SenderInt_i().