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

Straightforward event ID mapping. More...

#include <event_log_backend.hpp>

Inheritance diagram for boost::sinks::event_log::direct_event_id_mapping< AttributeValueT >:
Collaboration diagram for boost::sinks::event_log::direct_event_id_mapping< AttributeValueT >:

Public Types

typedef AttributeValueT attribute_value_type
 Attribute contained value type. More...
 
typedef base_type::mapped_type mapped_type
 Mapped value type. More...
 
typedef mapped_type result_type
 Result type. More...
 

Public Member Functions

 direct_event_id_mapping (attribute_name const &name)
 Constructor. More...
 
mapped_type operator() (record_view const &rec) const
 Extraction operator. More...
 

Detailed Description

template<typename AttributeValueT = int>
class boost::sinks::event_log::direct_event_id_mapping< AttributeValueT >

Straightforward event ID mapping.

This type of mapping assumes that attribute with a particular name always provides values that map directly onto the event identifiers. The mapping simply returns the extracted attribute value converted to the event ID.

Member Typedef Documentation

typedef AttributeValueT boost::sinks::basic_direct_mapping< event_id , AttributeValueT >::attribute_value_type
inherited

Attribute contained value type.

Mapped value type.

Result type.

Constructor & Destructor Documentation

template<typename AttributeValueT = int>
boost::sinks::event_log::direct_event_id_mapping< AttributeValueT >::direct_event_id_mapping ( attribute_name const &  name)
inlineexplicit

Constructor.

Parameters
nameAttribute name

Member Function Documentation

mapped_type boost::sinks::basic_direct_mapping< event_id , AttributeValueT >::operator() ( record_view const &  rec) const
inlineinherited

Extraction operator.

Parameters
recA log record to extract value from
Returns
An extracted attribute value

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