Used to pass configuration parameters when constructing a Service. More...
Public Member Functions | |
ServiceParams () | |
Default constructor. | |
ServiceParams (const ServiceParams &other) | |
Copy constructor. | |
ServiceParams & | operator= (const ServiceParams &that) |
Assignment operator. | |
ServiceParams & | service_name (const std::string &service_name) |
Assign the service_name configured in this instance of ServiceParams. | |
ServiceParams & | instance_name (const std::string &instance_name) |
Assign the instance_name configured in this instance of ServiceParams. | |
ServiceParams & | request_topic_name (const std::string &req_topic) |
Assign the request_topic_name configured in this instance of ServiceParams. | |
ServiceParams & | reply_topic_name (const std::string &rep_topic) |
Assign the reply_topic_name configured in this instance of ServiceParams. | |
ServiceParams & | datawriter_qos (dds_entity_traits::DataWriterQos qos) |
Assign the DataWriterQos configured in this instance of ServiceParams. | |
ServiceParams & | datareader_qos (dds_entity_traits::DataReaderQos qos) |
Assign the DataReaderQos configured in this instance of ServiceParams. | |
ServiceParams & | publisher (dds_entity_traits::Publisher publisher) |
Assign the Publisher configured in this instance of ServiceParams. | |
ServiceParams & | subscriber (dds_entity_traits::Subscriber subscriber) |
Assign the Subscriber configured in this instance of ServiceParams. | |
ServiceParams & | domain_participant (dds_entity_traits::DomainParticipant part) |
Assign the DomainParticipant configured in this instance of ServiceParams. | |
std::string | service_name () const |
Access the service_name configured in this instance of ServiceParams. | |
std::string | instance_name () const |
Access the instance_name configured in this instance of ServiceParams. | |
std::string | request_topic_name () const |
Access the request_topic_name configured in this instance of ServiceParams. | |
std::string | reply_topic_name () const |
Access the reply_topic_name configured in this instance of ServiceParams. | |
dds_entity_traits::DataWriterQos | datawriter_qos () const |
Access the DataWriterQos configured in this instance of ServiceParams. | |
dds_entity_traits::DataReaderQos | datareader_qos () const |
Access the DataReaderQos configured in this instance of ServiceParams. | |
dds_entity_traits::Publisher | publisher () const |
Access the Publisher configured in this instance of ServiceParams. | |
dds_entity_traits::Subscriber | subscriber () const |
Access the Subscriber configured in this instance of ServiceParams. | |
dds_entity_traits::DomainParticipant | domain_participant () const |
Access the DomainParticipant configured in this instance of ServiceParams. | |
Used to pass configuration parameters when constructing a Service.
ServiceParams is a valuetype that serves as a container of configuration parameters of a Service. It is designed to mimic the named-parameters feature available in some programming languages, which improves readability.