coan
6.0.1
A C/C++ Configuration Analyzer
|
template struct progress_summary_msg<Id>
generically encapsulates a progress summary diagnostic.
More...
#include <diagnostic.h>
Public Member Functions | |
progress_summary_msg () | |
Default constructor. | |
![]() | |
diagnostic (std::string const &severity_name) | |
Explicitly construct given a severity name. More... | |
severity | level () const |
Get the severity level of this diagnostic. | |
unsigned | id () const |
Get the causal identifier of this diagnostic. | |
![]() | |
diagnostic_base * | clone () const override |
Clone the base B object on the heap. | |
cloner (Args...args) | |
All purpose constructor. | |
![]() | |
diagnostic_base (std::string const &severity_name, severity level, unsigned id, bool in_code_only=false) | |
Constructor. More... | |
diagnostic_base (diagnostic_base const &src) | |
Copy constructor. | |
void | queue () const |
Globally enqueue a copy of this diagnostic_base for deferred action. | |
unsigned | encode () const |
Get the reason-code of the diagnostic. More... | |
operator unsigned () const | |
Explicitly cast the object to its reason-code. | |
bool | gagged () const |
Say whether this diagnostic is suppressed. | |
std::string | text () const |
Get the text of the diagnostic. | |
operator std::string () const | |
Explicitly cast the object to its textual representation. | |
template<typename T > | |
diagnostic_base & | operator<< (T const &obj) |
Insert an arbitrary object into the diagnostic. More... | |
diagnostic_base & | operator<< (defer) |
Queue the diagnostic for deferred action. More... | |
diagnostic_base & | operator<< (emit) |
Emit the diagnostic. More... | |
Additional Inherited Members | |
![]() | |
using | base = cloner< diagnostic_base, diagnostic< Level, Id >> |
Base class. | |
![]() | |
using | ptr = std::shared_ptr< diagnostic_base > |
Type of pointer to diagnostic_base | |
![]() | |
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... | |
![]() | |
static const severity | _severity_ |
The severity level of this diagnostic type. | |
static const unsigned | _id_ |
The causal identifier of this diagnostic type. | |
![]() | |
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 struct progress_summary_msg<Id>
generically encapsulates a progress summary diagnostic.
Id | The causal identifier of progress summary diagnostic. |
Definition at line 541 of file diagnostic.h.