Utility for suppressing exceptions of other nodes. More...
#include <Suppressor.hpp>
Public Member Functions | |
Suppressor () | |
void | add (Suppressable *item) |
int | check () |
bool | isEnabled () const |
void | print (const Tag &tag) |
void | setEnabled (bool enabled) |
void | start () |
Private Attributes | |
bool | enabled |
int | tally |
list< Suppressable * > | items |
Utility for suppressing exceptions of other nodes.
Suppressor | ( | ) |
Defaults enabled to true and tally to 0.
void add | ( | Suppressable * | item | ) |
Adds item to the items that may be suppressed.
int check | ( | ) |
void print | ( | const Tag & | tag | ) |
Prints a message to the log as if it were at the location of tag.
void start | ( | ) |
Sets suppression of each item.