|
RTI Connext Modern C++ API Version 7.6.0
|
Defines the filter to create a ContentFilteredTopic. More...
#include <dds/topic/Filter.hpp>
Public Member Functions | |
| Filter (const std::string &filter_expression) | |
| Creates a filter with a expression with no parameters. More... | |
| template<typename FwdIterator > | |
| Filter (const std::string &filter_expression, const FwdIterator ¶ms_begin, const FwdIterator ¶ms_end) | |
| Creates a filter with an expression that contains parameters. More... | |
| Filter (const std::string &query_expression, const std::vector< std::string > ¶ms) | |
| Creates a filter with an expression that contains parameters. More... | |
| const std::string & | expression () const |
| Gets the filter expression. More... | |
| const_iterator | begin () const |
| Provides the begin iterator to the parameter list. More... | |
| const_iterator | end () const |
| The end iterator to the parameter list. More... | |
| iterator | begin () |
| Provides the begin iterator to the parameter list. More... | |
| iterator | end () |
| The end iterator to the parameter list. More... | |
| template<typename FwdITerator > | |
| Filter & | parameters (const FwdITerator &the_begin, const FwdITerator the_end) |
| Modifies the parameters. More... | |
| Filter & | add_parameter (const std::string ¶m) |
| Appends a parameter. More... | |
| size_t | parameters_length () const |
| Gets the number of parameters. More... | |
| std::string | name () const |
| <<extension>> Gets the filter name More... | |
| dds::topic::Filter & | name (const std::string &the_name) |
| <<extension>> Sets a filter name More... | |
Defines the filter to create a ContentFilteredTopic.
Contains the filter expression and optionally the expression parameters. It also contains the filter name, which allows selecting the filter class to use–by default it's the built-in SQL filter.
|
inline |
Creates a filter with a expression with no parameters.
|
inline |
Creates a filter with an expression that contains parameters.
| FwdIterator | A forwar iterator whose value type is std::string (or convertible to) |
| filter_expression | The filter expression |
| params_begin | The beginning of the range of expression parameters |
| params_end | The end of the range (the number of parameter to create a ContentFilteredTopic can't exceed 100) |
|
inline |
Creates a filter with an expression that contains parameters.
| query_expression | The query expression |
| params | The expression parameters (the number of parameter to create a ContentFilteredTopic can't exceed 100) |
|
inline |
Gets the filter expression.
|
inline |
Provides the begin iterator to the parameter list.
|
inline |
The end iterator to the parameter list.
|
inline |
Provides the begin iterator to the parameter list.
|
inline |
The end iterator to the parameter list.
|
inline |
Modifies the parameters.
|
inline |
Appends a parameter.
|
inline |
Gets the number of parameters.
| std::string name | ( | ) | const |
<<extension>> Gets the filter name
| dds::topic::Filter & name | ( | const std::string & | the_name | ) |
<<extension>> Sets a filter name
You can use one of the built-in filters (rti::topic::sql_filter_name and rti::topic::stringmatch_filter_name), or a custom filter, which you need to register using dds::domain::DomainParticipant::register_contentfilter().
[default] Empty string (equivalent to rti::topic::sql_filter_name)