18 const std::string &message,
106 const std::string &user_input,
110 unsigned v = default_verbosity;
112 if(!user_input.empty())
120 "verbosity value " + user_input +
" out of range, using debug-level (" +
141 const std::function<
void(
mstreamt &)> &output_generator)
const
153 if(this->tellp() > 0)
dstringt has one field, an unsigned integer no which is an index into a static table of strings.
void set_verbosity(unsigned _verbosity)
virtual void print(unsigned level, const std::string &message)=0
std::vector< std::size_t > message_count
unsigned get_verbosity() const
mstreamt & operator<<(const xmlt &data)
static const commandt yellow
render text with yellow foreground color
static const commandt bright_magenta
render text with bright magenta foreground color
static unsigned eval_verbosity(const std::string &user_input, const message_levelt default_verbosity, message_handlert &dest)
Parse a (user-)provided string as a verbosity level and set it as the verbosity of dest.
message_handlert * message_handler
static const commandt magenta
render text with magenta foreground color
static const commandt reset
return to default formatting, as defined by the terminal
static const commandt green
render text with green foreground color
static const commandt faint
render text with faint font
static const commandt bold
render text with bold font
static const commandt bright_red
render text with bright red foreground color
static const commandt underline
render underlined text
void conditional_output(mstreamt &mstream, const std::function< void(mstreamt &)> &output_generator) const
Generate output to message_stream using output_generator if the configured verbosity is at least as h...
static const commandt bright_cyan
render text with bright cyan foreground color
static const commandt bright_yellow
render text with bright yellow foreground color
static const commandt bright_blue
render text with bright blue foreground color
static const commandt italic
render italic text
static const commandt red
render text with red foreground color
static const commandt cyan
render text with cyan foreground color
static const commandt bright_green
render text with bright green foreground color
static const commandt blue
render text with blue foreground color
const irep_idt & get_function() const
const irep_idt & get_column() const
const irep_idt & get_line() const
const irep_idt & get_file() const
A way of representing nested key/value data.
const std::string & id2string(const irep_idt &d)
unsigned unsafe_string2unsigned(const std::string &str, int base)
std::string to_string(const string_not_contains_constraintt &expr)
Used for debug printing.
std::string to_pretty(const structured_datat &data)
Convert the structured_data into plain text.