Class Console

Class Documentation

class Utils::Console

Public Functions

Console(ostream_type *stream = &cout, int level = 4)
void change_level(int new_level)
void change_stream(ostream_type *new_stream)
inline int get_level() const
inline ostream_type *get_stream() const
inline void changeLevel(int new_level)
inline void changeStream(ostream_type *new_stream)
inline int getLevel() const
inline ostream_type *getStream() const
inline Console const &flush() const
Console const &message(string const &msg, int msg_level = 4) const
Console const &semaphore(unsigned ryg, string const &msg, int msg_level = 0) const
Console const &warning(string const &msg) const
Console const &error(string const &msg) const
Console const &fatal(string const &msg) const
Console const &black(string const &msg, int msg_level = 0) const
Console const &red(string const &msg, int msg_level = 0) const
Console const &green(string const &msg, int msg_level = 0) const
Console const &yellow(string const &msg, int msg_level = 0) const
Console const &blue(string const &msg, int msg_level = 0) const
Console const &magenta(string const &msg, int msg_level = 0) const
Console const &cyan(string const &msg, int msg_level = 0) const
Console const &gray(string const &msg, int msg_level = 0) const
Console const &black_reversed(string const &msg, int msg_level = 0) const
Console const &red_reversed(string const &msg, int msg_level = 0) const
Console const &green_reversed(string const &msg, int msg_level = 0) const
Console const &yellow_reversed(string const &msg, int msg_level = 0) const
Console const &blue_reversed(string const &msg, int msg_level = 0) const
Console const &magenta_reversed(string const &msg, int msg_level = 0) const
Console const &cyan_reversed(string const &msg, int msg_level = 0) const
Console const &gray_reversed(string const &msg, int msg_level = 0) const
inline void set_message_style(rang::style const &s, rang::fg const &f, rang::bg const &b)
inline void setMessageStyle(rang::style const &s, rang::fg const &f, rang::bg const &b)
inline void set_warning_style(rang::style const &s, rang::fg const &f, rang::bg const &b)
inline void setWarningStyle(rang::style const &s, rang::fg const &f, rang::bg const &b)
inline void set_error_style(rang::style const &s, rang::fg const &f, rang::bg const &b)
inline void setErrorStyle(rang::style const &s, rang::fg const &f, rang::bg const &b)
inline void set_fatal_style(rang::style const &s, rang::fg const &f, rang::bg const &b)
inline void setFatalStyle(rang::style const &s, rang::fg const &f, rang::bg const &b)
inline void set_off() const

set off coloring

inline void setOff() const

set off coloring

inline void set_auto() const

set coloring automatic

inline void setAuto() const

set coloring automatic