ROSE 0.11.145.147
Static Public Member Functions | List of all members
Sawyer::Message::ColorSet Class Reference

Description

Colors to use for each message importance.

Thread safety: This object uses no global state but is otherwise not thread safe.

Definition at line 397 of file Message.h.

#include <Sawyer/Message.h>

Public Member Functions

const ColorSpecoperator[] (Importance imp) const
 Colors for a message.
 
ColorSpecoperator[] (Importance imp)
 Colors for a message.
 

Static Public Member Functions

static ColorSet blackAndWhite ()
 Returns a color set that uses only default colors.
 
static ColorSet fullColor ()
 Returns a color set that uses various foreground colors for the different message importance levels.
 

Member Function Documentation

◆ blackAndWhite()

static ColorSet Sawyer::Message::ColorSet::blackAndWhite ( )
static

Returns a color set that uses only default colors.

Warning, error, and fatal messages will use the bold attribute, but no colors are employed.

◆ operator[]() [1/2]

const ColorSpec & Sawyer::Message::ColorSet::operator[] ( Importance  imp) const
inline

Colors for a message.

Returns a reference to the color specification for a particular message importance.

Definition at line 409 of file Message.h.

◆ operator[]() [2/2]

ColorSpec & Sawyer::Message::ColorSet::operator[] ( Importance  imp)
inline

Colors for a message.

Returns a reference to the color specification for a particular message importance.

Definition at line 410 of file Message.h.


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