![]() |
OpenSplice ISO C++ 2 DCPS
v6.x
ISO C++ 2 OpenSplice Data Distribution Service Data-Centric Publish-Subscribe API
|
Filter objects contain SQL expressions that allow the application to specify a filter on the locally available data. More...
#include "Filter.hpp"
Public Types | |
typedef D::const_iterator | const_iterator |
typedef D::iterator | iterator |
Public Member Functions | |
Filter (const std::string &query_expression) | |
template<typename FWIterator > | |
Filter (const std::string &query_expression, const FWIterator ¶ms_begin, const FWIterator ¶ms_end) | |
Filter (const std::string &query_expression, const std::vector< std::string > ¶ms) | |
void | add_parameter (const std::string ¶m) |
const_iterator | begin () const |
iterator | begin () |
const_iterator | end () const |
iterator | end () |
const std::string & | expression () const |
bool | operator!= (const Value &other) const |
D * | operator-> () |
const D * | operator-> () const |
bool | operator== (const Value &other) const |
template<typename FWIterator > | |
void | parameters (const FWIterator &begin, const FWIterator end) |
uint32_t | parameters_length () const |
Filter objects contain SQL expressions that allow the application to specify a filter on the locally available data.
A Filter is used to create a ContentFilteredTopic.
Definition at line 57 of file Filter.hpp.
typedef D::const_iterator dds::topic::Filter::const_iterator |
Iterator for the query expression parameters.
Definition at line 68 of file Filter.hpp.
typedef D::iterator dds::topic::Filter::iterator |
Iterator for the query expression parameters.
Definition at line 63 of file Filter.hpp.
dds::topic::Filter::Filter | ( | const std::string & | query_expression | ) |
Create a Filter based on a query expression.
query_expression | SQL expression |
dds::core::Exception |
Definition at line 41 of file FilterImpl.hpp.
dds::topic::Filter::Filter | ( | const std::string & | query_expression, |
const FWIterator & | params_begin, | ||
const FWIterator & | params_end | ||
) |
Create a Filter based on a query expression and an iterable parameter container.
query_expression | SQL expression |
params_begin | Iterator pointing to the beginning of the parameters to set |
params_end | Iterator pointing to the end of the parameters to set |
dds::core::Exception |
Definition at line 48 of file FilterImpl.hpp.
dds::topic::Filter::Filter | ( | const std::string & | query_expression, |
const std::vector< std::string > & | params | ||
) |
Create a Filter based on a query expression and parameter vector.
query_expression | SQL expression |
params | Vector containing SQL expression parameters |
dds::core::Exception |
Definition at line 54 of file FilterImpl.hpp.
void dds::topic::Filter::add_parameter | ( | const std::string & | param | ) |
Adds a parameter to the query.
param | The parameter to add |
dds::core::Exception |
Definition at line 110 of file FilterImpl.hpp.
Filter::const_iterator dds::topic::Filter::begin | ( | ) | const |
Provides the begin iterator to the SQL expression parameter list.
dds::core::Exception |
Definition at line 69 of file FilterImpl.hpp.
Filter::iterator dds::topic::Filter::begin | ( | ) |
Provides the begin iterator to the SQL expression parameter list.
dds::core::Exception |
Definition at line 85 of file FilterImpl.hpp.
Filter::const_iterator dds::topic::Filter::end | ( | ) | const |
The end iterator to the SQL expression parameter list.
dds::core::Exception |
Definition at line 77 of file FilterImpl.hpp.
Filter::iterator dds::topic::Filter::end | ( | ) |
The end iterator to the SQL expression parameter list.
dds::core::Exception |
Definition at line 93 of file FilterImpl.hpp.
const std::string & dds::topic::Filter::expression | ( | ) | const |
Get the query expression.
dds::core::Exception |
Definition at line 61 of file FilterImpl.hpp.
|
inherited |
|
inherited |
The operator->() is provided to be able to directly invoke functions on the delegate.
The decision to provide direct access to the delegate was motivated by the need for providing a way that was not invasive with respect to the CXXDDS API and yet would allow for vendor-specific extension. Thus vendor-specific extensions can be invoked on the Value and on all its subclasses as follows:
|
inherited |
The operator->() is provided to be able to directly invoke functions on the delegate.
The decision to provide direct access to the delegate was motivated by the need for providing a way that was not invasive with respect to the CXXDDS API and yet would allow for vendor-specific extension. Thus vendor-specific extensions can be invoked on the Value and on all its subclasses as follows:
|
inherited |
void dds::topic::Filter::parameters | ( | const FWIterator & | begin, |
const FWIterator | end | ||
) |
Sets the query parameters.
begin | Iterator pointing to the beginning of the parameters to set |
end | Iterator pointing to the end of the parameters to set |
dds::core::Exception |
Definition at line 102 of file FilterImpl.hpp.
uint32_t dds::topic::Filter::parameters_length | ( | ) | const |
Gets the number of parameters in the query of the filter.
dds::core::Exception |
Definition at line 118 of file FilterImpl.hpp.