C/C++ API Reference
Loading...
Searching...
No Matches
pw::log_tokenized::GenericMetadata< kLevelBits, kLineBits, kFlagBits, kModuleBits, T > Class Template Reference

Overview

template<unsigned kLevelBits, unsigned kLineBits, unsigned kFlagBits, unsigned kModuleBits, typename T = uintptr_t>
class pw::log_tokenized::GenericMetadata< kLevelBits, kLineBits, kFlagBits, kModuleBits, T >

GenericMetadata facilitates the creation and interpretation of packed log metadata payloads. The GenericMetadata class allows flags, log level, line number, and a module identifier to be packed into bit fields of configurable size.

Typically, the Metadata alias should be used instead.

Public Member Functions

constexpr GenericMetadata (T log_level, T module, T flags, T line)
 
constexpr GenericMetadata (T value)
 
constexpr T level () const
 The log level of this message.
 
constexpr T line_number () const
 
constexpr T flags () const
 The flags provided to the log call.
 
constexpr T module () const
 
constexpr T value () const
 The underlying packed metadata.
 

Static Public Member Functions

template<T log_level = 0, T module = 0, T flags = 0, T line = 0>
static constexpr GenericMetadata Set ()
 

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