RTI Connext Modern C++ API
Version 5.3.1
|
<<extension>> <<value-type>> Provides information about a TopicQuery More...
#include <rti/sub/TopicQuery.hpp>
Inherits rti::core::NativeValueType< T, NATIVE_T, ADAPTER >.
Public Member Functions | |
TopicQuerySelection | selection () const |
The data selection. | |
const dds::core::string & | topic_name () const |
The topic name of the dds::sub::DataReader. | |
const rti::core::Guid & | original_related_reader_guid () const |
Identifies the dds::sub::DataReader that created the rti::sub::TopicQuery. | |
Related Functions | |
(Note that these are not member functions.) | |
TopicQueryData | create_topic_query_data_from_service_request (const rti::topic::ServiceRequest &service_request) |
Creates a TopicQueryData from a ServiceRequest. | |
<<extension>> <<value-type>> Provides information about a TopicQuery
Contains the information about a TopicQuery that can be retrieved using rti::sub::create_topic_query_data_from_service_request().
TopicQuerySelection rti::sub::TopicQueryData::selection | ( | ) | const |
The data selection.
const dds::core::string& rti::sub::TopicQueryData::topic_name | ( | ) | const |
The topic name of the dds::sub::DataReader.
const rti::core::Guid& rti::sub::TopicQueryData::original_related_reader_guid | ( | ) | const |
Identifies the dds::sub::DataReader that created the rti::sub::TopicQuery.
|
related |
Creates a TopicQueryData from a ServiceRequest.
This operation will extract the content from the request body of the rti::topic::ServiceRequest to create a rti::sub::TopicQueryData object.
The specified rti::topic::ServiceRequest must be a valid sample associated with the service id rti::core::ServiceRequestId_def::TOPIC_QUERY. Otherwise this operation will return false.
This operation can be called within the context of a dds::pub::DataWriterListener::on_service_request_accepted to retrieve the rti::sub::TopicQueryData of a rti::topic::ServiceRequest that has been received with service id rti::core::ServiceRequestId_def::TOPIC_QUERY
<<inout>> A rti::sub::TopicQueryData object where the content from the service request is extracted.
<<in>> Input rti::topic::ServiceRequest that contains the rti::sub::TopicQueryData as part of its request body.
service_request | The rti::topic::ServiceRequest that contains the rti::sub::TopicQueryData as part of its request body. |