10 #ifndef CPROVER_UTIL_UI_MESSAGE_H
11 #define CPROVER_UTIL_UI_MESSAGE_H
38 virtual void flush(
unsigned level)
override;
52 std::unique_ptr<const timestampert>
time;
59 const std::string &program,
65 const std::string &message)
override;
69 const std::string &message,
74 const xmlt &data)
override;
78 const jsont &data)
override;
81 const std::string &type,
82 const std::string &msg,
86 const std::string &type,
87 const std::string &msg,
91 const std::string &type,
92 const std::string &msg,
97 std::string
command(
unsigned c)
const override
102 return std::string();
106 #define OPT_FLUSH "(flush)"
108 #define HELP_FLUSH " {y--flush} \t flush every line of output\n"
Provides methods for streaming JSON arrays.
virtual std::string command(unsigned) const
Create an ECMA-48 SGR (Select Graphic Rendition) command.
A way of representing nested key/value data.
clockt
Derived types of timestampert.
void print(unsigned level, const structured_datat &data) override
virtual void json_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.
virtual uit get_ui() const
ui_message_handlert(ui_message_handlert &&)=default
message_handlert * message_handler
std::unique_ptr< const timestampert > time
virtual void flush(unsigned level) override
virtual void xml_ui_msg(const std::string &type, const std::string &msg, const source_locationt &location)
std::unique_ptr< json_stream_arrayt > json_stream
virtual ~ui_message_handlert()
virtual json_stream_arrayt & get_json_stream()
ui_message_handlert(const class cmdlinet &, const std::string &program)
virtual void ui_msg(const std::string &type, const std::string &msg, const source_locationt &location)
std::unique_ptr< console_message_handlert > console_message_handler
#define PRECONDITION(CONDITION)