Boost C++ Libraries

PrevUpHomeNext

Function template extract

boost::log::extract

Synopsis

// In header: <boost/log/utility/attribute_value_extractor.hpp>


template<typename T, typename CharT, typename ReceiverT> 
  bool extract(const CharT * name, 
               basic_attribute_values_view< CharT > const & attrs, 
               ReceiverT receiver);

Description

The function extracts an attribute value from the view. The user has to explicitly specify the type or set of possible types of the attribute value to be extracted.

Parameters:
attrs

A set of attribute values in which to look for the specified attribute value.

name

An attribute value name to extract.

receiver

A receiving functional object to pass the extracted value to.

Requires:

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

Returns:

true if extraction succeeded, false otherwise


PrevUpHomeNext