StormByte C++ Library: Logger module 1.2.0
StormByte-Logger is the logging module of the StormByte C++ suite.
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
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< Colorvalue
 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: