Base class for a Requester in the RPC communication. More...
#include <Requester.hpp>
Public Member Functions | |
| virtual const std::string & | get_service_name () const =0 |
| Returns the name of the service to which the requester belongs. | |
| virtual ReturnCode_t | send_request (void *data, RequestInfo &info)=0 |
| Send a request message. | |
| virtual ReturnCode_t | take_reply (void *data, RequestInfo &info)=0 |
| Take a reply message from the Requester DataReader's history. | |
| virtual ReturnCode_t | take_reply (LoanableCollection &data, LoanableSequence< RequestInfo > &info)=0 |
| Take all reply messages stored in the Requester DataReader's history. | |
| virtual ReturnCode_t | return_loan (LoanableCollection &data, LoanableSequence< RequestInfo > &info)=0 |
This operation indicates to the Requester's DataReader that the application is done accessing the collection of Reply datas and infos obtained by some earlier invocation of take_reply. | |
| virtual DataWriter * | get_requester_writer () const =0 |
| Getter for the Requester's DataWriter. | |
| virtual DataReader * | get_requester_reader () const =0 |
| Getter for the Requester's DataReader. | |
| Public Member Functions inherited from RPCEntity | |
| virtual ReturnCode_t | enable ()=0 |
| Enables the entity. | |
| virtual ReturnCode_t | close ()=0 |
| Disables the entity. | |
| virtual bool | is_enabled () const =0 |
| Check if the entity is enabled. | |
Protected Member Functions | |
| ~Requester ()=default | |
| Destructor. | |
| Protected Member Functions inherited from RPCEntity | |
| ~RPCEntity ()=default | |
| Destructor. | |
Base class for a Requester in the RPC communication.
|
protecteddefault |
Destructor.
|
pure virtual |
Getter for the Requester's DataReader.
|
pure virtual |
Getter for the Requester's DataWriter.
|
pure virtual |
Returns the name of the service to which the requester belongs.
|
pure virtual |
This operation indicates to the Requester's DataReader that the application is done accessing the collection of Reply datas and infos obtained by some earlier invocation of take_reply.
| [in,out] | data | A LoanableCollection object where the received data samples were obtained from an earlier invocation of take_reply on this Requester. |
| [in,out] | info | A LoanableSequence where the received request infos were obtained from an earlier invocation of take_reply on this Requester. |
|
pure virtual |
Send a request message.
| data | Data to send |
| info | Information about the request sample. This information is used to match the request with the reply through the SampleIdentity |
|
pure virtual |
Take all reply messages stored in the Requester DataReader's history.
| data | Data to receive the replies |
| info | Information about the reply samples |
|
pure virtual |
Take a reply message from the Requester DataReader's history.
| data | Data to receive the reply |
| info | Information about the reply sample |