Straightforward mapping. More...
#include <attribute_mapping.hpp>
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 | |
basic_direct_mapping (attribute_name const &name, mapped_type const &default_value) | |
Constructor. More... | |
mapped_type | operator() (record_view const &rec) const |
Extraction operator. More... | |
Straightforward mapping.
This type of mapping assumes that attribute with a particular name always provides values that map directly onto the native values. The mapping simply returns the extracted attribute value converted to the native value.
typedef AttributeValueT boost::sinks::basic_direct_mapping< MappedT, AttributeValueT >::attribute_value_type |
Attribute contained value type.
typedef base_type::mapped_type boost::sinks::basic_direct_mapping< MappedT, AttributeValueT >::mapped_type |
Mapped value type.
|
inherited |
Result type.
|
inlineexplicit |
Constructor.
name | Attribute name |
default_value | The default native value that is returned if the attribute value is not found |
|
inline |
Extraction operator.
rec | A log record to extract value from |