`template struct diagnostic<Level,Id> generically encapsulates a type of diagnostic.
More...
|
static unsigned | code () |
| Get the reason-code of this diagnostic's type.
|
|
static size_t | discard () |
| Forget all queued diagnostics of this type.
|
|
static size_t | flush () |
| Emit all deferred diagnostics of this type.
|
|
static size_t | deferred () |
| Count the diagnostics enqueued for deferred action.
|
|
static size_t | discard (unsigned reason) |
| Discard any queued diagnostics that match a reason-code, returning the number discarded. More...
|
|
static size_t | discard (severity level) |
| Discard any queued diagnostics that match a severity, returning the number discarded. More...
|
|
static void | discard_all () |
| Discard all queued diagnostics.
|
|
static size_t | flush (unsigned reason) |
| Emit all queued diagnostics that match a reason-code.
|
|
static size_t | flush (severity level) |
| Emit all queued diagnostics that match a severity.
|
|
static void | flush_all () |
| Emit any queued diagnostics.
|
|
static void | epilogue () |
| Write summary diagnostics on cerr at exit. More...
|
|
static int | exitcode () |
| Convert the internal exit status to an exit code for exit() . More...
|
|
|
virtual void | count () const |
| Increment global counts appropriately for the runtime type.
|
|
void | despatch () const throw (unsigned) |
| Emit the diagnostic.
|
|
static unsigned | code (severity level, unsigned id) |
| Get the reason-code that encodes a causal identifier and severity. More...
|
|
bool | _gagged |
| Is the diagnostic suppressed?
|
|
std::stringstream | _text |
| The text of the diagnostic.
|
|
static std::list< ptr > | _queue_ |
| Queue of deferred diagnostics. More...
|
|
static unsigned | _infos_ |
| Global count of informational diagnostics.
|
|
static unsigned | _warnings_ |
| Global count of warning diagnostics.
|
|
static unsigned | _errors_ |
| Global count of error diagnostics.
|
|
static unsigned | _abends_ |
| Global count of fatal error diagnostics.
|
|
static unsigned | _error_directives_generated_ |
| Global count of error directives output.
|
|
static unsigned | _error_directives_operative_ |
| Global count of operative error directives output.
|
|
template<severity Level, unsigned Id>
struct diagnostic< Level, Id >
`template struct diagnostic<Level,Id> generically encapsulates a type of diagnostic.
- Template Parameters
-
Level | The severity of the diagnostic type. |
Id | The causal identifier of diagnostic type. |
Definition at line 386 of file diagnostic.h.