Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::basic_filter_factory< CharT, AttributeValueT > Class Template Reference

The base class for filter factories. More...

#include <filter_parser.hpp>

Inheritance diagram for boost::basic_filter_factory< CharT, AttributeValueT >:
Collaboration diagram for boost::basic_filter_factory< CharT, AttributeValueT >:

Public Types

typedef AttributeValueT value_type
 The type(s) of the attribute value expected. More...
 
typedef base_type::string_type string_type
 
typedef CharT char_type
 Character type. More...
 

Public Member Functions

virtual filter on_exists_test (attribute_name const &name)
 The callback for filter for the attribute existence test. More...
 
virtual filter on_equality_relation (attribute_name const &name, string_type const &arg)
 The callback for equality relation filter. More...
 
virtual filter on_inequality_relation (attribute_name const &name, string_type const &arg)
 The callback for inequality relation filter. More...
 
virtual filter on_less_relation (attribute_name const &name, string_type const &arg)
 The callback for less relation filter. More...
 
virtual filter on_greater_relation (attribute_name const &name, string_type const &arg)
 The callback for greater relation filter. More...
 
virtual filter on_less_or_equal_relation (attribute_name const &name, string_type const &arg)
 The callback for less or equal relation filter. More...
 
virtual filter on_greater_or_equal_relation (attribute_name const &name, string_type const &arg)
 The callback for greater or equal relation filter. More...
 
virtual filter on_custom_relation (attribute_name const &name, string_type const &rel, string_type const &arg)
 The callback for custom relation filter. More...
 
virtual value_type parse_argument (string_type const &arg)
 The function parses the argument value for a binary relation. More...
 

Detailed Description

template<typename CharT, typename AttributeValueT>
class boost::basic_filter_factory< CharT, AttributeValueT >

The base class for filter factories.

The class defines default implementations for most filter expressions. In order to be able to construct filters, the attribute value type must support reading from a stream. Also, the default filters will rely on relational operators for the type, so these operators must also be defined.

Member Typedef Documentation

template<typename CharT >
typedef CharT boost::filter_factory< CharT >::char_type
inherited

Character type.

template<typename CharT , typename AttributeValueT >
typedef base_type::string_type boost::basic_filter_factory< CharT, AttributeValueT >::string_type
template<typename CharT , typename AttributeValueT >
typedef AttributeValueT boost::basic_filter_factory< CharT, AttributeValueT >::value_type

The type(s) of the attribute value expected.

Member Function Documentation

template<typename CharT , typename AttributeValueT >
virtual filter boost::basic_filter_factory< CharT, AttributeValueT >::on_custom_relation ( attribute_name const &  name,
string_type const &  rel,
string_type const &  arg 
)
inlinevirtual

The callback for custom relation filter.

Reimplemented from boost::filter_factory< CharT >.

References BOOST_LOG_THROW_DESCR_PARAMS, and boost::fusion::filter().

template<typename CharT , typename AttributeValueT >
virtual filter boost::basic_filter_factory< CharT, AttributeValueT >::on_equality_relation ( attribute_name const &  name,
string_type const &  arg 
)
inlinevirtual

The callback for equality relation filter.

Reimplemented from boost::filter_factory< CharT >.

References boost::fusion::filter().

template<typename CharT , typename AttributeValueT >
virtual filter boost::basic_filter_factory< CharT, AttributeValueT >::on_exists_test ( attribute_name const &  name)
inlinevirtual

The callback for filter for the attribute existence test.

Reimplemented from boost::filter_factory< CharT >.

References boost::fusion::filter().

template<typename CharT , typename AttributeValueT >
virtual filter boost::basic_filter_factory< CharT, AttributeValueT >::on_greater_or_equal_relation ( attribute_name const &  name,
string_type const &  arg 
)
inlinevirtual

The callback for greater or equal relation filter.

Reimplemented from boost::filter_factory< CharT >.

References boost::fusion::filter().

template<typename CharT , typename AttributeValueT >
virtual filter boost::basic_filter_factory< CharT, AttributeValueT >::on_greater_relation ( attribute_name const &  name,
string_type const &  arg 
)
inlinevirtual

The callback for greater relation filter.

Reimplemented from boost::filter_factory< CharT >.

References boost::fusion::filter().

template<typename CharT , typename AttributeValueT >
virtual filter boost::basic_filter_factory< CharT, AttributeValueT >::on_inequality_relation ( attribute_name const &  name,
string_type const &  arg 
)
inlinevirtual

The callback for inequality relation filter.

Reimplemented from boost::filter_factory< CharT >.

References boost::fusion::filter().

template<typename CharT , typename AttributeValueT >
virtual filter boost::basic_filter_factory< CharT, AttributeValueT >::on_less_or_equal_relation ( attribute_name const &  name,
string_type const &  arg 
)
inlinevirtual

The callback for less or equal relation filter.

Reimplemented from boost::filter_factory< CharT >.

References boost::fusion::filter().

template<typename CharT , typename AttributeValueT >
virtual filter boost::basic_filter_factory< CharT, AttributeValueT >::on_less_relation ( attribute_name const &  name,
string_type const &  arg 
)
inlinevirtual

The callback for less relation filter.

Reimplemented from boost::filter_factory< CharT >.

References boost::fusion::filter().

template<typename CharT , typename AttributeValueT >
virtual value_type boost::basic_filter_factory< CharT, AttributeValueT >::parse_argument ( string_type const &  arg)
inlinevirtual

The function parses the argument value for a binary relation.

References boost::lexical_cast().


The documentation for this class was generated from the following file: