StormByte-Logger 2.0.0
C++26 logger module of the StormByte suite
 
Loading...
Searching...
No Matches
StormByte::Logger::ColorManip Struct Reference

Temporarily selects a configured or explicit content color. More...

#include <StormByte/logger/manipulators.hxx>

Public Member Functions

constexpr ColorManip operator() (Color selected) const noexcept
 Select an explicit color for subsequent content.
 

Public Attributes

std::optional< Color > value
 Explicit color, or empty for the configured level color.
 

Detailed Description

Temporarily selects a configured or explicit content color.

Member Function Documentation

◆ operator()()

constexpr ColorManip StormByte::Logger::ColorManip::operator() ( Color  selected) const
inlineconstexprnoexcept

Select an explicit color for subsequent content.

Parameters
selectedColor to use until another color manipulator or endl.
Returns
A color manipulator carrying the selected color.

Member Data Documentation

◆ value

std::optional<Color> StormByte::Logger::ColorManip::value

Explicit color, or empty for the configured level color.


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