Version: 9.12.0
ReceiverFactory Class Reference

This class internally builds a receiver associated with the sender given. More...

#include <ReceiverFactory.hxx>

Static Public Member Functions

static double * getValue (SALOME::SenderDouble_ptr sender, long &size)
 This method performs the transfert of double array with the remote SenderDouble given. More...
 
static int * getValue (SALOME::SenderInt_ptr sender, long &size)
 This method performs the transfert of int array with the remote SenderInt given. More...
 

Static Private Member Functions

static double * getValueOneShot (SALOME::SenderDouble_ptr sender, long &size)
 This method performs the transfert with the remote SenderDouble given. More...
 
static int * getValueOneShot (SALOME::SenderInt_ptr sender, long &size)
 This method performs the transfert with the remote SenderInt given. More...
 

Detailed Description

This class internally builds a receiver associated with the sender given.

It also performs transfert completely and clean up the objects. This is the only class used client side of an array.

Member Function Documentation

◆ getValue() [1/2]

double * ReceiverFactory::getValue ( SALOME::SenderDouble_ptr  sender,
long &  size 
)
static

This method performs the transfert of double array with the remote SenderDouble given.

If it fails with this SenderDouble it tries with an another protocol (CORBA by default).

References SALOME::CORBA_, getValueOneShot(), MESSAGE, and TestKernelHelpers::ret.

Referenced by MatrixClient::getValue().

◆ getValue() [2/2]

int * ReceiverFactory::getValue ( SALOME::SenderInt_ptr  sender,
long &  size 
)
static

This method performs the transfert of int array with the remote SenderInt given.

If it fails with this SenderInt it tries with an another protocol (CORBA by default).

References SALOME::CORBA_, getValueOneShot(), MESSAGE, and TestKernelHelpers::ret.

◆ getValueOneShot() [1/2]

double * ReceiverFactory::getValueOneShot ( SALOME::SenderDouble_ptr  sender,
long &  size 
)
staticprivate

This method performs the transfert with the remote SenderDouble given.

If it fails an exception is thrown.

Referenced by getValue().

◆ getValueOneShot() [2/2]

int * ReceiverFactory::getValueOneShot ( SALOME::SenderInt_ptr  sender,
long &  size 
)
staticprivate

This method performs the transfert with the remote SenderInt given.

If it fails an exception is thrown.