An interface for a server-side RPC reader. More...
#include <RpcServerReader.hpp>
Public Member Functions | |
| virtual | ~RpcServerReader () noexcept=default |
| Destructor. | |
| virtual bool | read (T &value)=0 |
| Blocking read operation. | |
| virtual bool | read (T &value, const eprosima::fastdds::dds::Duration_t &timeout)=0 |
| Blocking read operation with timeout. | |
An interface for a server-side RPC reader.
Would be used to read inputs from a client on an operation with @feed annotated inputs.
|
virtualdefaultnoexcept |
Destructor.
|
pure virtual |
Blocking read operation.
Will block until an input is available or the input feed has finished.
| value | The value to read the input into. |
| RpcBrokenPipeException | if the communication with the client breaks. |
| RpcFeedCancelledException | if the client cancels the input feed. |
|
pure virtual |
Blocking read operation with timeout.
Will block until an input is available, the input feed has finished, or the timeout expires.
| value | The value to read the input into. |
| timeout | The maximum time to wait for an input. |
| RpcTimeoutException | if the timeout expires. |
| RpcBrokenPipeException | if the communication with the client breaks. |
| RpcFeedCancelledException | if the client cancels the input feed. |