Static helper class for outputting to a terminal/console. More...
#include <hayai_console.hpp>
Public Types | |
enum | TextColor { TextDefault, TextBlack, TextBlue, TextGreen, TextCyan, TextRed, TextPurple, TextYellow, TextWhite } |
Console text colors. More... | |
Static Public Member Functions | |
static Console & | Instance () |
Get the singleton instance of Console. | |
static bool | IsFormattingEnabled () |
Test if formatting is enabled. | |
static void | SetFormattingEnabled (bool enabled) |
Set whether formatting is enabled. | |
Private Member Functions | |
Console () | |
Private Attributes | |
bool | _formattingEnabled |
Static helper class for outputting to a terminal/console.
Definition at line 22 of file hayai_console.hpp.
Console text colors.
Definition at line 26 of file hayai_console.hpp.
hayai::Console::Console | ( | ) | [inline, private] |
Definition at line 85 of file hayai_console.hpp.
static Console& hayai::Console::Instance | ( | ) | [inline, static] |
Get the singleton instance of Console.
Definition at line 65 of file hayai_console.hpp.
static bool hayai::Console::IsFormattingEnabled | ( | ) | [inline, static] |
Test if formatting is enabled.
Definition at line 73 of file hayai_console.hpp.
static void hayai::Console::SetFormattingEnabled | ( | bool | enabled | ) | [inline, static] |
Set whether formatting is enabled.
Definition at line 80 of file hayai_console.hpp.
bool hayai::Console::_formattingEnabled [private] |
Definition at line 92 of file hayai_console.hpp.