StormByte-Logger 3.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>

Collaboration diagram for StormByte::Logger::ColorManip:

Public Member Functions

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

Public Attributes

StormByte::Safe::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()()

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

StormByte::Safe::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: