Boost C++ Libraries

PrevUpHomeNext

Class template basic_direct_event_id_mapping

boost::log::sinks::event_log::basic_direct_event_id_mapping — Straightforward event ID mapping.

Synopsis

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

template<typename CharT, typename AttributeValueT = int> 
class basic_direct_event_id_mapping :
  public basic_direct_mapping< CharT, event_id_t, AttributeValueT >
{
public:
  // types
  typedef base_type::string_type string_type;  // String type. 

  // construct/copy/destruct
  explicit basic_direct_event_id_mapping(string_type const &);
};

Description

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.

basic_direct_event_id_mapping public construct/copy/destruct

  1. explicit basic_direct_event_id_mapping(string_type const & name);

    Constructor

    Parameters:
    name

    Attribute name


PrevUpHomeNext