RTI Connext C++ API  Version 5.1.0
connext::SimpleReplierParams< TReq, TRep > Class Template Reference

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

Inherits connext::details::EntityParams.

Public Member Functions

 SimpleReplierParams (DDS::DomainParticipant *participant, SimpleReplierListener< TReq, TRep > &listener)
 Creates SimpleReplierParams with the parameters that a SimpleReplier always needs.
 
SimpleReplierParamsservice_name (const std::string &service_name)
 The service name the Replier offers and Requesters use to match.
 
SimpleReplierParamsrequest_topic_name (const std::string &req_topic)
 Sets a specific request topic name.
 
SimpleReplierParamsreply_topic_name (const std::string &rep_topic)
 Sets a specific reply topic name.
 
SimpleReplierParamsqos_profile (const std::string &qos_library_name, const std::string &qos_profile_name)
 Sets a QoS profile for the entities in this replier.
 
SimpleReplierParamsdatawriter_qos (const DDS_DataWriterQos &qos)
 Sets the quality of service of the reply DataWriter.
 
SimpleReplierParamsdatareader_qos (const DDS_DataReaderQos &qos)
 Sets the quality of service of the request DataReader.
 
SimpleReplierParamspublisher (DDSPublisher *publisher)
 Sets a specific Publisher.
 
SimpleReplierParamssubscriber (DDSSubscriber *subscriber)
 Sets a specific Subscriber.
 
SimpleReplierParamsrequest_type_support (DDS::TypeSupport *type_support)
 Sets the type support for the request type.
 
SimpleReplierParamsreply_type_support (DDS::TypeSupport *type_support)
 Sets the type support for the reply type.
 

Detailed Description

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

Contains the parameters for creating a connext::SimpleReplier.

The parameters for a SimpleReplier are identical to those of the Replier, except for the SimpleReplierListener, which is required and has a different user callback.

See Also
connext::ReplierParams

Constructor & Destructor Documentation

template<typename TReq , typename TRep >
connext::SimpleReplierParams< TReq, TRep >::SimpleReplierParams ( DDS::DomainParticipant participant,
SimpleReplierListener< TReq, TRep > &  listener 
)
inline

Creates SimpleReplierParams with the parameters that a SimpleReplier always needs.

In addition to these parameters, a SimpleReplier needs either:

The other parameters are optional.

Parameters
participantThe DomainParticipant that this SimpleReplier uses to join a domain.
listenerThe listener where the user callback that a SimpleReplier calls is implemented.

Member Function Documentation

template<typename TReq , typename TRep >
SimpleReplierParams& connext::SimpleReplierParams< 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
template<typename TReq , typename TRep >
SimpleReplierParams& connext::SimpleReplierParams< TReq, TRep >::request_topic_name ( const std::string &  req_topic)
inline

Sets a specific request topic name.

This is an alternative to service_name

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

Sets a specific reply topic name.

This is an alternative to service_name

template<typename TReq , typename TRep >
SimpleReplierParams& connext::SimpleReplierParams< 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.

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

Sets the quality of service of the reply DataWriter.

See Also
qos_profile
template<typename TReq , typename TRep >
SimpleReplierParams& connext::SimpleReplierParams< TReq, TRep >::datareader_qos ( const DDS_DataReaderQos qos)
inline

Sets the quality of service of the request DataReader.

See Also
qos_profile
template<typename TReq , typename TRep >
SimpleReplierParams& connext::SimpleReplierParams< TReq, TRep >::publisher ( DDSPublisher publisher)
inline

Sets a specific Publisher.

See Also
connext::RequesterParams::publisher
template<typename TReq , typename TRep >
SimpleReplierParams& connext::SimpleReplierParams< TReq, TRep >::subscriber ( DDSSubscriber subscriber)
inline

Sets a specific Subscriber.

See Also
connext::RequesterParams::subscriber
template<typename TReq , typename TRep >
SimpleReplierParams& connext::SimpleReplierParams< TReq, TRep >::request_type_support ( DDS::TypeSupport type_support)
inline

Sets the type support for the request type.

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

Sets the type support for the reply type.

See Also
connext::ReplierParams::reply_type_support

RTI Connext C++ API Version 5.1.0 Copyright © Mon Feb 3 2014 Real-Time Innovations, Inc