Orocos Real-Time Toolkit
2.5.0
|
A handler object that allows us to collect the results of a send. More...
import "rtt/transports/corba/OperationInterface.idl";
Public Member Functions | |
CSendStatus | collect (out CAnyArguments args) |
CSendStatus | collectIfDone (out CAnyArguments args) |
CSendStatus | checkStatus () |
Just checks what the status is. | |
any | ret () |
Returns only the return value, when checkStatus() returns CSendSuccess. | |
void | checkArguments (in CAnyArguments args) raises ( CWrongNumbArgException, CWrongTypeArgException) |
Checks if this handle returns these arguments in collect() and collectIfDone(). | |
void | dispose () |
Clients need to call this after they have finished using this CSendHandle object. |
A handler object that allows us to collect the results of a send.
Due to memory restrictions, a server may choose to cleanup a CSendHandle before or during collect() was called. This is equivalent to having a SendError.
Definition at line 81 of file OperationInterface.idl.
void RTT::corba::CSendHandle::checkArguments | ( | in CAnyArguments | args | ) | raises ( CWrongNumbArgException, CWrongTypeArgException) |
Checks if this handle returns these arguments in collect() and collectIfDone().
You can use this to check if collect() or collectIfDone() return what you expect. If no exception is thrown, the arguments are of the correct number and type. The values in args are ignored and not stored, only the types of the anys are checked. One could obtain the same information by using COperationInterface::getCollectType() for 1..COperationInterface::getCollectArity().
void RTT::corba::CSendHandle::dispose | ( | ) |
Clients need to call this after they have finished using this CSendHandle object.
After dispose(), this object may no longer be used.
any RTT::corba::CSendHandle::ret | ( | ) |
Returns only the return value, when checkStatus() returns CSendSuccess.
Convenient if the sent method only returns a value.