RTI Connext .Net APIs  Version 5.3.1
DDS::TopicQueryHelper Class Reference

Helpers to provide utility operations related to DDS::TopicQuery. More...

#include <managed_subscription.h>

Static Public Member Functions

static void topic_query_data_from_service_request (TopicQueryData^ topicQueryData, ServiceRequest^ serviceRequest)
 Retrieves the DDS::TopicQueryData data contained in the specified DDS::ServiceRequest. More...
 

Detailed Description

Helpers to provide utility operations related to DDS::TopicQuery.

Member Function Documentation

◆ topic_query_data_from_service_request()

static void DDS::TopicQueryHelper::topic_query_data_from_service_request ( TopicQueryData topicQueryData,
ServiceRequest serviceRequest 
)
static

Retrieves the DDS::TopicQueryData data contained in the specified DDS::ServiceRequest.

This operation will extract the content from the request body of the DDS::ServiceRequest and place it into the specified DDS::TopicQueryData object.

The specified DDS::ServiceRequest must be a valid sample associated with the service id DDS::ServiceRequest::TOPIC_QUERY_SERVICE_ID. Otherwise this operation will return false.

This operation can be called within the context of a DDS::DataWriterListener::on_service_request_accepted to retrieve the DDS::TopicQueryData of a DDS::ServiceRequest that has been received with service id DDS::ServiceRequest::TOPIC_QUERY_SERVICE_ID

Parameters
topicQueryData<<inout>> A DDS::TopicQueryData object where the content from the service request is extracted. Cannot be NULL.
serviceRequest<<in>> Input DDS::ServiceRequest that contains the DDS::TopicQueryData as part of its request body. Cannot be NULL.

RTI Connext .Net APIs Version 5.3.1 Copyright © Mon Feb 19 2018 Real-Time Innovations, Inc