Boost C++ Libraries

PrevUpHomeNext

Function template register_filter_factory

boost::log::register_filter_factory

Synopsis

// In header: <boost/log/utility/init/filter_parser.hpp>


template<typename CharT, typename TraitsT, typename AllocatorT> 
  void register_filter_factory(std::basic_string< CharT, TraitsT, AllocatorT > const & name, 
                               shared_ptr< filter_factory< CharT > > const & factory);

Description

The function registers a filter factory object for the specified attribute name. The factory will be used to construct a filter during parsing the filter string.

Parameters:
factory

The filter factory

name

Attribute name to associate the factory with

Requires:

factory != NULL


PrevUpHomeNext