RTI Connext Traditional C++ API Version 7.2.0
connext::ReplierParams< TReq, TRep > Class Template Reference

Contains the parameters for creating a connext::Replier. More...

Inherits connext::details::EntityParams.

Public Member Functions

 ReplierParams (DDS::DomainParticipant *participant)
 Creates a ReplierParams with the parameters that a Replier always needs. More...
 
ReplierParamsreplier_listener (ReplierListener< TReq, TRep > &listener)
 Sets a listener that is called when requests are available. More...
 
ReplierParamsservice_name (const std::string &service_name)
 The service name the Replier offers and Requesters use to match. More...
 
ReplierParamsrequest_topic_name (const std::string &req_topic)
 Sets a specific request topic name. More...
 
ReplierParamsreply_topic_name (const std::string &rep_topic)
 Sets a specific reply topic name. More...
 
ReplierParamsqos_profile (const std::string &qos_library_name, const std::string &qos_profile_name)
 Sets a QoS profile for the entities in this replier. More...
 
ReplierParamsdatawriter_qos (const DDS_DataWriterQos &qos)
 Sets the quality of service of the reply DataWriter. More...
 
ReplierParamsdatareader_qos (const DDS_DataReaderQos &qos)
 Sets the quality of service of the request DataReader. More...
 
ReplierParamspublisher (DDS::Publisher *publisher)
 Sets a specific Publisher. More...
 
ReplierParamssubscriber (DDS::Subscriber *subscriber)
 Sets a specific Subscriber. More...
 
ReplierParamsrequest_type_support (DDS::TypeSupport *type_support)
 Sets the type support for the request type. More...
 
ReplierParamsreply_type_support (DDS::TypeSupport *type_support)
 Sets the type support for the reply type. More...
 

Detailed Description

template<typename TReq, typename TRep>
class connext::ReplierParams< TReq, TRep >

Contains the parameters for creating a connext::Replier.

See also
connext::RequesterParams

Constructor & Destructor Documentation

◆ ReplierParams()

template<typename TReq , typename TRep >
connext::ReplierParams< TReq, TRep >::ReplierParams ( DDS::DomainParticipant participant)
inlineexplicit

Creates a ReplierParams with the parameters that a Replier always needs.

In addition to the participant , a Replier needs either:

When DDS_DynamicData is used, connext::ReplierParams::request_type_support and/or connext::ReplierParams::reply_type_support are required as well.

The other parameters are optional.

Parameters
participantThe DomainParticipant that this replier uses to join a domain.

Member Function Documentation

◆ replier_listener()

template<typename TReq , typename TRep >
ReplierParams & connext::ReplierParams< TReq, TRep >::replier_listener ( ReplierListener< TReq, TRep > &  listener)
inline

Sets a listener that is called when requests are available.

See also
connext::ReplierListener

◆ service_name()

template<typename TReq , typename TRep >
ReplierParams & connext::ReplierParams< TReq, TRep >::service_name ( const std::string &  service_name)
inline

The service name the Replier offers and Requesters use to match.

See also
connext::RequesterParams::service_name

◆ request_topic_name()

template<typename TReq , typename TRep >
ReplierParams & connext::ReplierParams< TReq, TRep >::request_topic_name ( const std::string &  req_topic)
inline

Sets a specific request topic name.

The specified topic name will be used, instead of allowing a topic name to be generated based on the service_name. If that topic already exists, it will be reused. This is useful to have the Replier use a DDSContentFilteredTopic to receive only certain requests.

◆ reply_topic_name()

template<typename TReq , typename TRep >
ReplierParams & connext::ReplierParams< TReq, TRep >::reply_topic_name ( const std::string &  rep_topic)
inline

Sets a specific reply topic name.

The specified topic name will be used, instead of allowing a topic name to be generated based on c the service_name. If that topic already exists, it will be reused.

◆ qos_profile()

template<typename TReq , typename TRep >
ReplierParams & connext::ReplierParams< TReq, TRep >::qos_profile ( const std::string &  qos_library_name,
const std::string &  qos_profile_name 
)
inline

Sets a QoS profile for the entities in this replier.

Specifies the XML QoS profile that will be used to configure the quality of service for the Replier's underlying reply DataWriter and request DataReader.

Parameters
qos_library_nameThe name of the QoS library
qos_profile_nameThe name of the QoS profile inside the QoS library
See also
connext::RequesterParams::qos_profile
Configuring Request-Reply QoS profiles
Configuring QoS Profiles with XML

◆ datawriter_qos()

template<typename TReq , typename TRep >
ReplierParams & connext::ReplierParams< TReq, TRep >::datawriter_qos ( const DDS_DataWriterQos qos)
inline

Sets the quality of service of the reply DataWriter.

See also
qos_profile

◆ datareader_qos()

template<typename TReq , typename TRep >
ReplierParams & connext::ReplierParams< TReq, TRep >::datareader_qos ( const DDS_DataReaderQos qos)
inline

Sets the quality of service of the request DataReader.

See also
qos_profile

◆ publisher()

template<typename TReq , typename TRep >
ReplierParams & connext::ReplierParams< TReq, TRep >::publisher ( DDS::Publisher publisher)
inline

Sets a specific Publisher.

See also
connext::RequesterParams::publisher

◆ subscriber()

template<typename TReq , typename TRep >
ReplierParams & connext::ReplierParams< TReq, TRep >::subscriber ( DDS::Subscriber subscriber)
inline

Sets a specific Subscriber.

See also
connext::RequesterParams::subscriber

◆ request_type_support()

template<typename TReq , typename TRep >
ReplierParams & connext::ReplierParams< TReq, TRep >::request_type_support ( DDS::TypeSupport type_support)
inline

Sets the type support for the request type.

This parameter is required when TReq is DDS_DynamicData.

In all other cases, this parameter is ignored and the singleton Reply<TReq, TRep>::RequestTypeSupport is used instead

See also
DDSDynamicDataTypeSupport

◆ reply_type_support()

template<typename TReq , typename TRep >
ReplierParams & connext::ReplierParams< TReq, TRep >::reply_type_support ( DDS::TypeSupport type_support)
inline

Sets the type support for the reply type.

This parameter is required when TRep is DDS_DynamicData.

In all other cases, this parameter is ignored and the singleton Reply<TReq, TRep>::RequestTypeSupport is used instead

See also
DDSDynamicDataTypeSupport