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

Class template custom_event_id_mapping

boost::log::sinks::event_log::custom_event_id_mapping — Customizable event ID mapping.

Synopsis

// In header: <boost/log/sinks/event_log_backend.hpp>

template<typename AttributeValueT = int> 
class custom_event_id_mapping :
  public basic_custom_mapping< event_id, AttributeValueT >
{
public:
  // construct/copy/destruct
  explicit custom_event_id_mapping(attribute_name const &);
};

Description

The class allows to setup a custom mapping between an attribute and event identifiers. The mapping should be initialized similarly to the standard map container, by using indexing operator and assignment.

custom_event_id_mapping public construct/copy/destruct

  1. explicit custom_event_id_mapping(attribute_name const & name);

    Constructor

    Parameters:

    name

    Attribute name


PrevUpHomeNext