Ejemplo n.º 1
0
void default_filter_factory< CharT >::on_string_argument(
    string_type const& name, const char_type* b, const char_type* e, filter_type& filter)
{
    filter = log::filters::attr<
        string_type
    >(name, std::nothrow).satisfies(log::aux::bind2nd(RelationT(), string_type(b, e)));
}
Ejemplo n.º 2
0
 result_type operator() (long val) const
 {
     typedef binder2nd< RelationT, long > predicate;
     m_filter = predicate_wrapper< log::integral_types::type, predicate >(m_name, predicate(RelationT(), val));
 }
Ejemplo n.º 3
0
 result_type operator() (string_type const& val) const
 {
     m_filter = predicate_wrapper< log::string_types::type, predicate >(m_name, predicate(RelationT(), val));
 }
Ejemplo n.º 4
0
 result_type operator() (double val) const
 {
     typedef binder2nd< RelationT, double > predicate;
     m_filter = predicate_wrapper< log::floating_point_types::type, predicate >(m_name, predicate(RelationT(), val));
 }
Ejemplo n.º 5
0
void default_filter_factory< CharT >::on_fp_argument(string_type const& name, double val, filter_type& filter)
{
    filter = log::filters::attr<
        log::floating_point_types
    >(name, std::nothrow).satisfies(log::aux::bind2nd(RelationT(), val));
}
Ejemplo n.º 6
0
void default_filter_factory< CharT >::on_integral_argument(string_type const& name, long val, filter_type& filter)
{
    filter = log::filters::attr<
        log::integral_types
    >(name, std::nothrow).satisfies(log::aux::bind2nd(RelationT(), val));
}