|
Public Types |
enum | seriousness {
ERR_DEBUG = 0x00000000,
ERR_MESSAGE = 0x00010000,
ERR_WARNING = 0x00020000,
ERR_ERROR = 0x00030000,
ERR_FATAL = 0x00040000
} |
Public Member Functions |
| gr_error_handler () |
virtual | ~gr_error_handler () |
void | debug (const char *format,...) |
void | message (const char *format,...) |
void | warning (const char *format,...) |
void | error (const char *format,...) |
void | fatal (const char *format,...) |
virtual int | nwarnings () const =0 |
virtual int | nerrors () const =0 |
virtual void | reset_counts ()=0 |
void | verror (seriousness s, const char *format, va_list) |
void | verror_text (seriousness s, const std::string &text) |
Static Public Member Functions |
static gr_error_handler * | default_handler () |
static gr_error_handler * | silent_handler () |
static bool | has_default_handler () |
static void | set_default_handler (gr_error_handler *errh) |
Protected Member Functions |
virtual void | count_error (seriousness s)=0 |
virtual void | handle_text (seriousness s, const std::string &str)=0 |
std::string | make_text (seriousness s, const char *format, va_list) |