Base class for a Replier in the RPC communication. More...
#include <Replier.hpp>
Public Member Functions | |
| virtual const std::string & | get_service_name () const =0 |
| Returns the name of the service to which the replier belongs. | |
| virtual ReturnCode_t | send_reply (void *data, const RequestInfo &info)=0 |
| Send a reply message. | |
| virtual ReturnCode_t | take_request (void *data, RequestInfo &info)=0 |
| Take a request message from the Replier DataReader's history. | |
| virtual ReturnCode_t | take_request (LoanableCollection &data, LoanableSequence< RequestInfo > &info)=0 |
| Take all request messages stored in the Replier DataReader's history. | |
| virtual ReturnCode_t | return_loan (LoanableCollection &data, LoanableSequence< RequestInfo > &info)=0 |
This operation indicates to the Replier's DataReader that the application is done accessing the collection of Request datas and infos obtained by some earlier invocation of take_request. | |
| virtual DataWriter * | get_replier_writer () const =0 |
| Getter for the Replier's DataWriter. | |
| virtual DataReader * | get_replier_reader () const =0 |
| Getter for the Replier'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 | |
| ~Replier ()=default | |
| Destructor. | |
| Protected Member Functions inherited from RPCEntity | |
| ~RPCEntity ()=default | |
| Destructor. | |
Base class for a Replier in the RPC communication.
|
protecteddefault |
Destructor.
|
pure virtual |
Getter for the Replier's DataReader.
|
pure virtual |
Getter for the Replier's DataWriter.
|
pure virtual |
Returns the name of the service to which the replier belongs.
|
pure virtual |
This operation indicates to the Replier's DataReader that the application is done accessing the collection of Request datas and infos obtained by some earlier invocation of take_request.
| [in,out] | data | A LoanableCollection object where the received data samples were obtained from an earlier invocation of take_request on this Replier. |
| [in,out] | info | A LoanableSequence where the received request infos were obtained from an earlier invocation of take_request on this Replier. |
|
pure virtual |
Send a reply message.
| data | Data to send |
| info | Information about the reply sample. This information is used to match the reply with the request through the SampleIdentity |
|
pure virtual |
Take all request messages stored in the Replier DataReader's history.
| data | Data to receive the request |
| info | Information about the request sample |
|
pure virtual |
Take a request message from the Replier DataReader's history.
| data | Data to receive the request |
| info | Information about the request sample |