#include <ui_message.h>
|
| static bool | is_sgr_style_command (unsigned c) |
| | Returns true iff c is a Select Graphic Rendition (SGR) parameter value used by messaget for terminal styling – 0..4 (reset/bold/ faint/italic/underline) and 31..36 / 91..96 (foreground colours and their bright variants).
|
| |
|
| | ui_message_handlert (message_handlert *, uit, const std::string &program, const bool always_flush, timestampert::clockt clock_type) |
| |
| virtual void | print (unsigned level, const std::string &message) override |
| |
| virtual void | print (unsigned level, const std::string &message, const source_locationt &location) override |
| |
| virtual void | print (unsigned level, const xmlt &data) override |
| |
| virtual void | print (unsigned level, const jsont &data) override |
| |
| virtual void | xml_ui_msg (const std::string &type, const std::string &msg, const source_locationt &location) |
| |
| virtual void | json_ui_msg (const std::string &type, const std::string &msg, const source_locationt &location) |
| |
| virtual void | ui_msg (const std::string &type, const std::string &msg, const source_locationt &location) |
| |
| const char * | level_string (unsigned level) |
| |
| std::string | command (unsigned c) const override |
| | Create an ECMA-48 SGR (Select Graphic Rendition) command.
|
| |
Definition at line 21 of file ui_message.h.
◆ uit
| Enumerator |
|---|
| PLAIN | |
| XML_UI | |
| JSON_UI | |
Definition at line 24 of file ui_message.h.
◆ ui_message_handlert() [1/4]
◆ ui_message_handlert() [2/4]
◆ ui_message_handlert() [3/4]
◆ ~ui_message_handlert()
| ui_message_handlert::~ui_message_handlert |
( |
| ) |
|
|
virtual |
◆ ui_message_handlert() [4/4]
◆ command()
| std::string ui_message_handlert::command |
( |
unsigned |
| ) |
const |
|
overrideprotectedvirtual |
Create an ECMA-48 SGR (Select Graphic Rendition) command.
The default behavior is no action.
Reimplemented from message_handlert.
Definition at line 120 of file ui_message.cpp.
◆ flush()
◆ get_json_stream()
◆ get_ui()
◆ is_sgr_style_command()
| bool ui_message_handlert::is_sgr_style_command |
( |
unsigned |
c | ) |
|
|
static |
Returns true iff c is a Select Graphic Rendition (SGR) parameter value used by messaget for terminal styling – 0..4 (reset/bold/ faint/italic/underline) and 31..36 / 91..96 (foreground colours and their bright variants).
The values listed here are kept in lock-step with the corresponding messaget::commandt constants in message.h / message.cpp; if a new styling command is added there, it should be added here too so it is suppressed on the structured UIs.
Definition at line 147 of file ui_message.cpp.
◆ json_ui_msg()
◆ level_string()
◆ print() [1/5]
◆ print() [2/5]
◆ print() [3/5]
◆ print() [4/5]
◆ print() [5/5]
◆ ui_msg()
◆ xml_ui_msg()
◆ _ui
| uit ui_message_handlert::_ui |
|
protected |
◆ always_flush
◆ console_message_handler
◆ json_stream
◆ message_handler
◆ out
| std::ostream& ui_message_handlert::out |
|
protected |
◆ time
The documentation for this class was generated from the following files: