Alert module
Alert and exception handling system for Rodin.
The Alert module provides a comprehensive system for handling exceptions, warnings, informational messages, and success notifications with colored terminal output and formatted messaging capabilities.
Classes
- class Rodin::Alert::ExceptionPrefix
- Prefix class for exception messages.
- class Rodin::Alert::Exception
- Exception class with formatted output capabilities.
- class Rodin::Alert::InfoPrefix
- Prefix class for informational messages.
- class Rodin::Alert::Info
- Informational message class with formatted output.
- class Rodin::Alert::SuccessPrefix
- Prefix class for success messages.
- class Rodin::Alert::Success
- Success message class with formatted output.
- class Rodin::Alert::Text
- Templated text class with foreground and background color support.
Enums
Functions
- auto operator<<(std::ostream& os, Attribute a) -> std::ostream&
- Stream insertion operator for text attributes.
Enum documentation
enum class Attribute
Text formatting attributes for terminal output.
Enumeration of text formatting attributes that can be applied to terminal output including bold, italic, underline, and other visual effects.
Enumerators | |
---|---|
Bold |
Bold text formatting. |
Dark |
Dark text formatting. |
Italic |
Italic text formatting |
Underline |
Underlined text. |
Blink |
Blinking text effect. |
Reverse |
Reverse video (inverted colors) |
Concealed |
Concealed/hidden text. |
Crossed |
Crossed-out text. |
Function documentation
std::ostream& operator<<(std::ostream& os, Attribute a)
Stream insertion operator for text attributes.
Parameters | |
---|---|
os | Output stream to write to. |
a | The attribute to apply. |
Returns | Reference to the output stream. |
Applies the specified text formatting attribute to the output stream using termcolor library functionality.