15#ifndef FASTDDS_DDS_RPC__REQUESTER_HPP
16#define FASTDDS_DDS_RPC__REQUESTER_HPP
18#include <fastdds/dds/core/LoanableSequence.hpp>
19#include <fastdds/dds/rpc/RPCEntity.hpp>
20#include <fastdds/dds/rpc/RequestInfo.hpp>
26class LoanableCollection;
Class DataReader, contains the actual implementation of the behaviour of the Subscriber.
Definition DataReader.hpp:83
Class DataWriter, contains the actual implementation of the behaviour of the DataWriter.
Definition DataWriter.hpp:67
A collection of generic opaque pointers that can receive the buffer from outside (loan).
Definition LoanableCollection.hpp:34
A type-safe, ordered collection of elements that can receive the buffer from outside (loan).
Definition LoanableSequence.hpp:63
Abstract base class for all RPC Objects.
Definition RPCEntity.hpp:30
Base class for a Requester in the RPC communication.
Definition Requester.hpp:39
~Requester()=default
Destructor.
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 const std::string & get_service_name() const =0
Returns the name of the service to which the requester belongs.
virtual DataWriter * get_requester_writer() const =0
Getter for the Requester's DataWriter.
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 col...
virtual DataReader * get_requester_reader() const =0
Getter for the Requester's DataReader.
virtual ReturnCode_t send_request(void *data, RequestInfo &info)=0
Send a request message.
Definition DomainParticipant.hpp:46
int32_t ReturnCode_t
Definition DDSReturnCode.hpp:59
SampleInfo is the information that accompanies each sample that is ‘read’ or ‘taken.
Definition SampleInfo.hpp:41