template<class Foreground>
Rodin::Alert::MessagePrefix class

Base class for message prefixes with colored text.

Template class that provides colored, bolded prefix text for messages. This class is used as a base for specific message type prefixes like ExceptionPrefix, WarningPrefix, etc.

Base classes

template<class F = NoColorT, class B = NoColorT>
class Text<Foreground>
Templated text class with foreground and background color support.

Public types

using Parent = Text<Foreground>
Parent class type alias.

Constructors, destructors, conversion operators

MessagePrefix(const Foreground& fg, const std::string& prefix)
Constructs a message prefix with foreground color and text.
MessagePrefix(const std::string& prefix)
Constructs a message prefix with text using default color.
MessagePrefix(const MessagePrefix& other)
Copy constructor.
MessagePrefix(MessagePrefix&& other)
Move constructor.

Function documentation

template<class Foreground _1>
Rodin::Alert::MessagePrefix<_1>::MessagePrefix(const Foreground& fg, const std::string& prefix)

Constructs a message prefix with foreground color and text.

Parameters
fg The foreground color.
prefix The prefix text string.

template<class Foreground _1>
Rodin::Alert::MessagePrefix<_1>::MessagePrefix(const std::string& prefix)

Constructs a message prefix with text using default color.

Parameters
prefix The prefix text string.