Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of boost. Click here for the latest Boost documentation.
PrevUpHomeNext

Function template register_filter_factory

boost::log::register_filter_factory

Synopsis

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


template<typename CharT> 
  void register_filter_factory(attribute_name 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:

name != NULL && factory != NULL, name points to a zero-terminated string


PrevUpHomeNext