Manipulates the channel of the current RecordBuilder object.
More...
#include <RecordBuilder.hpp>
|
constexpr | SetChan (TChannel data) noexcept(std::is_nothrow_move_constructible_v< Chan_t >) |
| Constructor accepting channel data. More...
|
|
template<Record TRecord> |
void | operator() (TRecord &rec) const |
| Changes channel of the passed Record object. More...
|
|
template<class TChannel>
class sl::log::SetChan< TChannel >
Manipulates the channel of the current RecordBuilder object.
- Template Parameters
-
TChannel | Channel type which must later on be convertible to Record's channel type. |
This type is generally designed to be directly used in logging expressions. When handed-over to a RecordBuilder instance by operator <<, it will then manipulate the Channel data of its constructing Record object.
- Examples
- CustomizeBaseRecord/main.cpp.
◆ Chan_t
template<class TChannel >
◆ SetChan()
template<class TChannel >
|
inlineexplicitconstexprnoexcept |
Constructor accepting channel data.
- Parameters
-
◆ operator()()
template<class TChannel >
template<Record TRecord>
Changes channel of the passed Record object.
- Template Parameters
-
- Parameters
-
rec | The Record which is about to change |
The documentation for this class was generated from the following file: