RTI Routing Service  Version 7.0.0
rti::routing::processor::Query Class Reference

Encapsulates a content query to select data from a rti::routing::adapter::StreamReader. More...

#include <Query.hpp>

Inherits Reference< rti::routing::processor::QueryHolder >.

Public Member Functions

 Query (RTI_RoutingServiceInput *input, const dds::topic::Filter &filter)
 Creates a Query described by a filter on an input. More...
 
void filter (const dds::topic::Filter &filter)
 Updates the current Query content filter. More...
 

Detailed Description

Encapsulates a content query to select data from a rti::routing::adapter::StreamReader.

Note that syntax for the query filter is StreamReader implementation dependent. For the DDS Adapter case, the syntax corresponds to that of the SQL filter.

A Query object holds a custom query obtained by calling rti::routing::adapter::StreamReader::create_content_query. Likewise, the deletion of a Query object will call rti::routing::adapter::StreamReader::delete_content_query.

Constructor & Destructor Documentation

◆ Query()

rti::routing::processor::Query::Query ( RTI_RoutingServiceInput *  input,
const dds::topic::Filter &  filter 
)
inline

Creates a Query described by a filter on an input.

Parameters
[in]inputThe native Input to query the data from.
[in]filterDescription of the content query based on an expression and parameters.
See also
dds::topic::Filter

Member Function Documentation

◆ filter()

void rti::routing::processor::Query::filter ( const dds::topic::Filter &  filter)
inline

Updates the current Query content filter.

This operation will call rti::routing::adapter::StreamReader::create_content_query providing the current query content data this Query holds.