Simple-Log  alpha-v0.7
sl::log::RecordSetters< TRecord > Struct Template Reference

Provides a layer of abstraction to Record member setter. More...

#include <Record.hpp>

Public Types

using Record_t = std::remove_cvref_t< TRecord >
 

Static Public Attributes

constexpr static auto setMessage
 
constexpr static auto setSeverity
 
constexpr static auto setChannel
 
constexpr static auto setTimePoint
 

Detailed Description

template<class TRecord>
struct sl::log::RecordSetters< TRecord >

Provides a layer of abstraction to Record member setter.

Template Parameters
TRecordThe used Record type

There is no need for the users using this type of indirection. The library makes use of this abstraction, thus users may specialize it to use Record types, which does not fit in the original concept and trait syntax provided by this library.

Version
since alpha-v0.7

Member Typedef Documentation

◆ Record_t

template<class TRecord >
using sl::log::RecordSetters< TRecord >::Record_t = std::remove_cvref_t<TRecord>

Member Data Documentation

◆ setChannel

template<class TRecord >
constexpr static auto sl::log::RecordSetters< TRecord >::setChannel
staticconstexpr
Initial value:
{
[]<class TChannel>(Record_t& record, TChannel&& chan)
{
return record.setChannel(std::forward<TChannel>(chan));
}
}
std::remove_cvref_t< TRecord > Record_t
Definition: Record.hpp:150

◆ setMessage

template<class TRecord >
constexpr static auto sl::log::RecordSetters< TRecord >::setMessage
staticconstexpr
Initial value:
{
[]<class TMessage>(Record_t& record, TMessage&& msg)
{
return record.setMessage(std::forward<TMessage>(msg));
}
}

◆ setSeverity

template<class TRecord >
constexpr static auto sl::log::RecordSetters< TRecord >::setSeverity
staticconstexpr
Initial value:
{
[]<class TSeverity>(Record_t& record, TSeverity&& sev)
{
return record.setSeverity(std::forward<TSeverity>(sev));
}
}

◆ setTimePoint

template<class TRecord >
constexpr static auto sl::log::RecordSetters< TRecord >::setTimePoint
staticconstexpr
Initial value:
{
[]<class TTimePoint>(Record_t& record, TTimePoint&& timePoint)
{
return record.setTimePoint(std::forward<TTimePoint>(timePoint));
}
}

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